public class RequestHeaderClientHandler extends Object implements SOAPHandler<SOAPMessageContext>
| Constructor and Description |
|---|
RequestHeaderClientHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(MessageContext messageContext) |
static String |
createCoalescedCookieFromCurrentInfo() |
static String |
getCurrentGroupId()
Retrieves the portlet group identifier, if any, associated with the portlets being interacted with.
|
static ProducerSessionInformation |
getCurrentProducerSessionInformation()
Retrieves the session metadata associated with the current interaction.
|
Set<QName> |
getHeaders() |
boolean |
handleFault(SOAPMessageContext soapMessageContext) |
boolean |
handleMessage(SOAPMessageContext soapMessageContext) |
boolean |
handleRequest(SOAPMessageContext msgContext)
Retrieves cookie information from currently held information and adds them to outbound (producer-bound) messages.
|
boolean |
handleResponse(MessageContext msgContext)
Extracts any cookie from the inbound (provider-issued) message and make this information available to other WSRP components via
ProducerSessionInformation. |
static void |
resetCurrentInfo()
Removes any data associated with the current interaction.
|
static void |
setCurrentGroupId(String groupId)
Specifies that the portlets being interacted with are part of the portlet group identified by the specified group identifier
|
static void |
setCurrentInfo(String groupId,
ProducerSessionInformation sessionInformation)
Updates the information associated with the current interactions with the specified information.
|
public Set<QName> getHeaders()
getHeaders in interface SOAPHandler<SOAPMessageContext>public boolean handleMessage(SOAPMessageContext soapMessageContext)
handleMessage in interface Handler<SOAPMessageContext>public boolean handleFault(SOAPMessageContext soapMessageContext)
handleFault in interface Handler<SOAPMessageContext>public void close(MessageContext messageContext)
close in interface Handler<SOAPMessageContext>public boolean handleRequest(SOAPMessageContext msgContext)
msgContext - the SOAP message context to add cookies totrue to continue processing, false otherwise (defined by Handler.handleMessage(javax.xml.ws.handler.MessageContext))public static String createCoalescedCookieFromCurrentInfo()
public boolean handleResponse(MessageContext msgContext)
ProducerSessionInformation.msgContext - the inbound (provider-issued) message from which cookie information is extractedtrue to continue processing, false otherwise (defined by Handler.handleMessage(javax.xml.ws.handler.MessageContext))public static void setCurrentInfo(String groupId, ProducerSessionInformation sessionInformation)
groupId - the portlet group identifier (if any) associated with the portlet(s) being interacted withsessionInformation - the session metadata to associate with the current interactionpublic static void resetCurrentInfo()
public static ProducerSessionInformation getCurrentProducerSessionInformation()
null if none currently existspublic static String getCurrentGroupId()
null if the portlets are not part of a grouppublic static void setCurrentGroupId(String groupId)
groupId - the group identifier for the group the portlets being interacted with are part ofCopyright © 2006-2014 GateIn. All Rights Reserved.