private void configureCookie(ServiceClient client) throws AxisFault { if(SessionCookie != null){ Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, SessionCookie); } }
private void configureCookie(ServiceClient client) throws AxisFault { if(SessionCookie != null){ Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, SessionCookie); } }
public void setAuthCookie(String cookie) { ServiceClient client = ssoStub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(HTTPConstants.COOKIE_STRING, cookie); ServiceClient client2 = appMgtStub._getServiceClient(); Options option2 = client2.getOptions(); option2.setManageSession(true); option2.setProperty(HTTPConstants.COOKIE_STRING, cookie); }
public StatisticsAdminClient(String cookie, String backendServerURL, ConfigurationContext configCtx, Locale locale) throws AxisFault { String serviceURL = backendServerURL + "StatisticsAdmin"; bundle = ResourceBundle.getBundle(BUNDLE, locale); stub = new StatisticsAdminStub(configCtx, serviceURL); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); }
public TracerAdminClient(String cookie, String backendServerURL, ConfigurationContext configCtx, Locale locale) throws AxisFault { String serviceURL = backendServerURL + "TracerAdmin"; stub = new TracerAdminStub(configCtx, serviceURL); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); resourceBundle = ResourceBundle.getBundle(BUNDLE, locale); }
public AnalyzerAdminClient(String cookie, String backendServerURL, ConfigurationContext configCtx) throws AxisFault { String serviceURL = backendServerURL + ANALYZER_ADMIN_SERVICE_URL; stub = new AnalyzerAdminServiceStub(configCtx, serviceURL); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); }
public ReportResourceSupplierClient(String cookie, String backEndServerURL, ConfigurationContext configCtx ) throws AxisFault { String serviceURL = backEndServerURL + "ReportingResourcesSupplier"; stub = new ReportingResourcesSupplierStub(configCtx, serviceURL); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); }
private void setAuthCookie(boolean isExpired, Stub stub, Authenticator authenticator) throws Exception { ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, authenticator.getCookie(isExpired)); }
private void setAuthCookie(boolean isExpired, Stub stub, Authenticator authenticator) throws Exception { ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, authenticator.getCookie(isExpired)); }
public LogViewerClient(String cookie, String backendServerURL, ConfigurationContext configCtx) throws AxisFault { String serviceURL = backendServerURL + "LogViewer"; stub = new LogViewerStub(configCtx, serviceURL); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); }
public SAMLSSOServiceClient(String backendServerURL, ConfigurationContext configCtx) throws AxisFault { String serviceURL = backendServerURL + "IdentitySAMLSSOService"; stub = new IdentitySAMLSSOServiceStub(configCtx, serviceURL); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); }
public IdentityManagementAdminClient(String cookie, String url, ConfigurationContext configContext) throws Exception { try { stub = new ChallengeQuestionManagementAdminServiceStub(configContext, url + SERVICE_NAME); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); } catch (Exception e) { handleException(e.getMessage(), e); } }
public UserStoreCountClient(String cookie, String url, String serviceName, ConfigurationContext configContext) throws java.lang.Exception { try { stub = new UserStoreCountServiceStub(configContext, url + serviceName); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); } catch (Exception e) { handleException(e); } }
public UserAdminClient(String cookie, String url, String serviceName, ConfigurationContext configContext) throws java.lang.Exception { try { stub = new UserAdminStub(configContext, url + serviceName); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); } catch (Exception e) { handleException(e); } }
public UserStoreCountClient(String cookie, String url, ConfigurationContext configContext) throws java.lang.Exception { try { stub = new UserStoreCountServiceStub(configContext, url + "UserStoreCountService"); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); } catch (Exception e) { handleException(e); } }
public MultitenancyThrottlingServiceClient(String serverUrl, String userName, String password) throws Exception { stub = new MultitenancyThrottlingServiceStub(ThrottlingAgentServiceComponent.getThrottlingAgent().getConfigurationContextService() .getClientConfigContext(), serverUrl + "MultitenancyThrottlingService"); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); String cookie = login(serverUrl, userName, password); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); }
public ServiceAdminClient(String serverURL) throws AxisFault { String serviceURL = generateURL(new String[] { serverURL, SERVICES_SUFFIX, SERVICE_ADMIN_SERVICE }); stub = new ServiceAdminStub(BAMUtil.getConfigurationContextService().getClientConfigContext(), serviceURL); stub._getServiceClient().getOptions().setManageSession(true); }
public AuthenticationAdminClient_2_0_3(String serverURL) throws AxisFault { String serviceURL; serviceURL = generateURL(new String[]{serverURL, SERVICES_SUFFIX, BAMConstants.AUTH_ADMIN_SERVICE_2_0_X}); stub = new AuthenticationAdminServiceStub(BAMUtil.getConfigurationContextService().getClientConfigContext(), serviceURL); stub._getServiceClient().getOptions().setManageSession(true); }
public AuthenticationAdminClient_3_2_0(String serverURL) throws AxisFault { String serviceURL; serviceURL = generateURL(new String[]{serverURL, SERVICES_SUFFIX, BAMConstants.AUTH_ADMIN_SERVICE_3_2_0}); stub = new AuthenticationAdminStub(BAMUtil.getConfigurationContextService().getClientConfigContext(), serviceURL); stub._getServiceClient().getOptions().setManageSession(true); }
public ServiceGroupAdminClient(String serverURL) throws AxisFault { String serviceURL = generateURL(new String[]{serverURL, BAMConstants.SERVICES_SUFFIX, BAMConstants.SERVICE_GROUP_ADMIN_SERVICE}); stub = new ServiceGroupAdminStub(BAMUtil.getConfigurationContextService().getClientConfigContext(), serviceURL); stub._getServiceClient().getOptions().setManageSession(true); }