Quantcast
Viewing all articles
Browse latest Browse all 2218

How to get the web client uri or IP information in data adapter java service

hi

As the samples in SDK "chassis-app/chassis-service" ,the samples use the "ChassisDataAdapter implements DataProviderAdapter" to get data.

Here I want to get the web client ip information in the provider constructor.

 

One way I thought out is to use the "_userSessionService",but "_userSessionService.getUserSession()"  return null!

 

Is there any new way to get the IP?

 

 

  public ChassisDataAdapter(UserSessionService userSessionService,VimObjectReferenceService vimObjectReferenceService) {

      _objectRefService = vimObjectReferenceService;

      _userSessionService = userSessionService;

 

     //Here to get Web client IP info

     createChassis();

 

  }


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>