public void setSessionCookie(String cookie) { stub._getServiceClient().getOptions().setProperty(HTTPConstants.COOKIE_STRING, cookie); }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, Boolean.TRUE, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
public void cleanup() { try { stub._getServiceClient().cleanupTransport(); stub._getServiceClient().cleanup(); stub.cleanup(); } catch (AxisFault axisFault) { if (log.isErrorEnabled()) { log.error("Stub cleanup failed: " + this.getClass().getName(), axisFault); } } } }
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 static Stub authenticateStub(Stub stub, String sessionCookie, String backendURL) { long soTimeout = 5 * 60 * 1000; // Five minutes ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setTimeOutInMilliSeconds(soTimeout); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, sessionCookie); option.setTo(new EndpointReference(backendURL + client.getServiceContext().getAxisService().getName().replaceAll("[^a-zA-Z]", ""))); if (log.isDebugEnabled()) { log.debug("AuthenticateStub : Stub created with session " + sessionCookie); } return stub; }
public final <T extends Stub> T createStub(Class<T> type, String endpoint) throws Exception { T stub = type .getConstructor(ConfigurationContext.class, String.class) .newInstance(getConfigurationContext(), getEndpoint(endpoint)); configureServiceClient(stub._getServiceClient()); return stub; }
public static Stub authenticateStub(Stub stub, String sessionCookie, String backendURL) { // Three minutes long soTimeout = 5 * 60 * 1000; ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setTimeOutInMilliSeconds(soTimeout); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, sessionCookie); option.setTo(new EndpointReference( backendURL + client.getServiceContext().getAxisService().getName().replaceAll("[^a-zA-Z]", ""))); return stub; }