protected String extractSessionID(MessageContext synCtx, String key) { SessionCookie sessionCookie = extractSessionCookie(synCtx, key); if (sessionCookie != null) { return sessionCookie.getSessionId(); } return null; }
public void unbind(MessageContext synCtx) { SALSessions.getInstance().removeSession(extractSessionID(synCtx, COOKIE)); }
private void validateInput(String endpointName) { if (endpointName == null) { handleException("For proper clustered mode operation, " + "all endpoints should be uniquely named"); } }
/** * Searches for "Set-Cookie" HTTP header in the message context. If found and that given * session ID is not already in the session map update the session map by mapping the cookie * to the endpoint. * * @param synCtx MessageContext possibly containing the "Set-Cookie" HTTP header. */ public void updateSession(MessageContext synCtx) { SessionCookie cookie = extractSessionCookie(synCtx, SET_COOKIE); if (cookie != null) { if (log.isDebugEnabled()) { log.debug("Found the HTTP header [Set-Cookie]: " + cookie.toString() + "' for updating the session"); } SALSessions.getInstance().updateSession(synCtx, cookie); } }
/** * Gives the endpoint based on the service group context ID of the request message. * * @param synCtx Request MessageContext, possibly containing a service group context ID. * @return Endpoint associated with the soap session, if current message is a soap session * message and if current message is not the first message of the session. Returns null, * if an Endpoint could not be found for the session. */ public SessionInformation getSession(MessageContext synCtx) { return SALSessions.getInstance().getSession( extractSessionID(synCtx.getEnvelope().getHeader(), QNAME_SERVICE_GROUP_ID)); }
public SessionInformation getSession(MessageContext synCtx) { return SALSessions.getInstance().getSession( extractSessionID(synCtx.getEnvelope().getHeader(), CSID_QNAME)); }
public void updateSession(MessageContext synCtx) { SALSessions.getInstance().updateSession(synCtx, extractSessionID(synCtx.getEnvelope().getHeader(), CSID_QNAME)); }
public void unbind(MessageContext synCtx) { SALSessions.getInstance().removeSession(extractSessionID(synCtx.getEnvelope().getHeader(), QNAME_SERVICE_GROUP_ID)); }
public void unbind(MessageContext synCtx) { SALSessions.getInstance().removeSession( extractSessionID(synCtx.getEnvelope().getHeader(), CSID_QNAME)); }
public List<Endpoint> getEndpoints(SessionInformation sessionInformation) { return SALSessions.getInstance().getChildEndpoints(sessionInformation); }
public void removeSessionID(MessageContext syCtx) { removeSessionID(syCtx, COOKIE); }
protected void removeSessionID(MessageContext synCtx, String key) { if (key != null) { Map headerMap = getTransportHeaderMap(synCtx); if (headerMap != null) { headerMap.remove(key); } } }
protected void removeSessionID(OMElement header, QName keyQName) { OMElement sgcIDElm = getHeaderBlock(header, keyQName); if (sgcIDElm != null) { sgcIDElm.detach(); } }
/** * Gives the endpoint based on the service group context ID of the request message. * * @param synCtx Request MessageContext, possibly containing a service group context ID. * @return Endpoint associated with the soap session, if current message is a soap session * message and if current message is not the first message of the session. Returns null, * if an Endpoint could not be found for the session. */ public SessionInformation getSession(MessageContext synCtx) { return SALSessions.getInstance().getSession( extractSessionID(synCtx.getEnvelope().getHeader(), QNAME_SERVICE_GROUP_ID)); }
public SessionInformation getSession(MessageContext synCtx) { return SALSessions.getInstance().getSession( extractSessionID(synCtx.getEnvelope().getHeader(), CSID_QNAME)); }
public void unbind(MessageContext synCtx) { SALSessions.getInstance().removeSession(extractSessionID(synCtx, COOKIE)); }
public void unbind(MessageContext synCtx) { SALSessions.getInstance().removeSession(extractSessionID(synCtx.getEnvelope().getHeader(), QNAME_SERVICE_GROUP_ID)); }
public List<Endpoint> getEndpoints(SessionInformation sessionInformation) { return SALSessions.getInstance().getChildEndpoints(sessionInformation); }
private void validateInput(String endpointName) { if (endpointName == null) { handleException("For proper clustered mode operation, " + "all endpoints should be uniquely named"); } }
public void removeSessionID(MessageContext syCtx) { removeSessionID(syCtx, COOKIE); }