当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
RequestHeaderClientHandler - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.wsrp.handler
Class RequestHeaderClientHandler
java.lang.Object
javax.xml.rpc.handler.GenericHandler
org.jboss.portal.wsrp.handler.RequestHeaderClientHandler
- All Implemented Interfaces:
- javax.xml.rpc.handler.Handler
- public class RequestHeaderClientHandler
- extends javax.xml.rpc.handler.GenericHandler
A request handler that uses a thread local to setup cookies on the wire.
- Author:
- Julien Viet, Chris
Laprun
Field Summary |
private static org.apache.commons.httpclient.cookie.RFC2109Spec |
cookieParser
|
private static java.lang.ThreadLocal |
local
|
Methods inherited from class javax.xml.rpc.handler.GenericHandler |
destroy, handleFault, init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
local
private static final java.lang.ThreadLocal local
cookieParser
private static final org.apache.commons.httpclient.cookie.RFC2109Spec cookieParser
RequestHeaderClientHandler
public RequestHeaderClientHandler()
getHeaders
public javax.xml.namespace.QName[] getHeaders()
handleRequest
public boolean handleRequest(javax.xml.rpc.handler.MessageContext msgContext)
handleResponse
public boolean handleResponse(javax.xml.rpc.handler.MessageContext msgContext)
extractCookies
private org.apache.commons.httpclient.Cookie[] extractCookies(java.lang.String endpointAddress,
java.lang.String[] cookieValues)
setCurrentInfo
public static void setCurrentInfo(java.lang.String groupId,
ProducerSessionInformation sessionInformation)
resetCurrentInfo
public static void resetCurrentInfo()
getCurrentProducerSessionInformation
public static ProducerSessionInformation getCurrentProducerSessionInformation()
getCurrentProducerSessionInformation
public static ProducerSessionInformation getCurrentProducerSessionInformation(boolean create)
getCurrentGroupId
public static java.lang.String getCurrentGroupId()
setCurrentGroupId
public static void setCurrentGroupId(java.lang.String groupId)
getCurrentInfo
private static RequestHeaderClientHandler.CurrentInfo getCurrentInfo(boolean createIfNeeded)