Showing posts with label Fetching Server name in Controller Command. Show all posts
Showing posts with label Fetching Server name in Controller Command. Show all posts

Monday, 20 June 2016

Fetching Server or Clone ID in a Controller Command

In Order to fetch the server/ Instance name or clone ID in Controller Command use the following methods

HttpControllerRequestObject req = (HttpControllerRequestObject) getCommandContext().getRequest();
req.getServletContext().getServerInfo();

or

WCSApp.getCloneId();