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 addPropertyToOperationClient(OperationClient operationClient, String propertyKey, Object propertyValue) { operationClient.getOptions().setProperty(propertyKey, propertyValue); }
private void configureCookie(ServiceClient client) throws AxisFault { if(cookie != null){ Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); } if(propertyToSortBy != null){ client.addStringHeader(Constants.SORTING_DATA, propertyToSortBy); } }
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 void setSessionCookie(String cookie) { stub._getServiceClient().getOptions().setProperty(HTTPConstants.COOKIE_STRING, cookie); }
public void terminateSequence(String key) throws AxisFault { serviceClient.getOptions().setProperty(MercuryClientConstants.TERMINATE_MESSAGE, Constants.VALUE_TRUE); serviceClient.getOptions().setProperty(MercuryClientConstants.INTERNAL_KEY, key); serviceClient.fireAndForget(null); }
public static void clearSecurityProperties(Options options) { Options current = options; while (current != null && current.getProperty(SynapseConstants.RAMPART_POLICY) != null) { current.setProperty(SynapseConstants.RAMPART_POLICY, null); current = current.getParent(); } }
/** * @param to */ public void setTo(EndpointReference to) { options.setTo(to); }
/** * Get WS-Addressing To endpoint reference. * * @return endpoint */ public EndpointReference getTo() { if (to == null && parent != null) { return parent.getTo(); } return to; }
/** * Get WS-Addressing MessageId. * * @return uri string */ public String getMessageId() { if (messageId == null && parent != null) { return parent.getMessageId(); } return messageId; }
/** * Get listener used for incoming message. * * @return listener */ public TransportListener getListener() { checkActivateWarning("getListener"); if (listener == null && parent != null) { return parent.getListener(); } return listener; }
/** * Add a RelatesTo * * @param reference RelatesTo describing how we relate to another message */ public void addRelatesTo(RelatesTo reference) { options.addRelatesTo(reference); }
/** * @return Returns RelatesTo array. */ public RelatesTo[] getRelationships() { return options.getRelationships(); }
/** * Set WS-Addressing From endpoint reference. * * @return endpoint */ public EndpointReference getFrom() { if (from == null && parent != null) { return parent.getFrom(); } return from; }
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 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)); }
/** * sets the propertykey and propertyValue as a pair to operation client * * @param operationClient * @param propertyKey * @param propertyValue */ protected void addPropertyToOperationClient(OperationClient operationClient, String propertyKey, Object propertyValue) { operationClient.getOptions().setProperty(propertyKey, propertyValue); }
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); } }
/** * sets the propertykey and propertyValue as a pair to operation client * * @param operationClient * @param propertyKey * @param propertyValue */ protected void addPropertyToOperationClient(OperationClient operationClient, String propertyKey, Object propertyValue) { operationClient.getOptions().setProperty(propertyKey, propertyValue); }
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); } }