站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

RequestHeaderClientHandler - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.wsrp.handler
Class RequestHeaderClientHandler

java.lang.Object
  extended byjavax.xml.rpc.handler.GenericHandler
      extended byorg.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

Nested Class Summary
(package private) static class RequestHeaderClientHandler.CurrentInfo
           
 
Field Summary
private static org.apache.commons.httpclient.cookie.RFC2109Spec cookieParser
           
private static java.lang.ThreadLocal local
           
 
Constructor Summary
RequestHeaderClientHandler()
           
 
Method Summary
private  org.apache.commons.httpclient.Cookie[] extractCookies(java.lang.String endpointAddress, java.lang.String[] cookieValues)
           
static java.lang.String getCurrentGroupId()
           
private static RequestHeaderClientHandler.CurrentInfo getCurrentInfo(boolean createIfNeeded)
           
static ProducerSessionInformation getCurrentProducerSessionInformation()
           
static ProducerSessionInformation getCurrentProducerSessionInformation(boolean create)
           
 javax.xml.namespace.QName[] getHeaders()
           
 boolean handleRequest(javax.xml.rpc.handler.MessageContext msgContext)
           
 boolean handleResponse(javax.xml.rpc.handler.MessageContext msgContext)
           
static void resetCurrentInfo()
           
static void setCurrentGroupId(java.lang.String groupId)
           
static void setCurrentInfo(java.lang.String groupId, ProducerSessionInformation sessionInformation)
           
 
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
 

Field Detail

local

private static final java.lang.ThreadLocal local

cookieParser

private static final org.apache.commons.httpclient.cookie.RFC2109Spec cookieParser
Constructor Detail

RequestHeaderClientHandler

public RequestHeaderClientHandler()
Method Detail

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)