public abstract class HandlerChainBaseImpl extends Object implements javax.xml.rpc.handler.HandlerChain
| Modifier and Type | Field and Description |
|---|---|
protected int |
falseIndex |
protected List<org.jboss.ws.core.jaxrpc.handler.HandlerChainBaseImpl.HandlerEntry> |
handlers |
protected Set<String> |
roles |
protected int |
state |
static int |
STATE_CREATED |
static int |
STATE_DESTROYED |
static int |
STATE_DOES_NOT_EXIST |
static int |
STATE_READY |
| Constructor and Description |
|---|
HandlerChainBaseImpl(List<javax.xml.rpc.handler.HandlerInfo> infos,
Set<String> roles)
Constructs a handler chain with the given handlers infos
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object element) |
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
boolean |
addAll(int index,
Collection c) |
void |
clear() |
boolean |
contains(Object elem) |
boolean |
containsAll(Collection c) |
void |
destroy()
Indicates the end of lifecycle for a HandlerChain.
|
boolean |
equals(Object o) |
Object |
get(int index) |
protected javax.xml.rpc.handler.Handler |
getHandlerAt(int pos)
Get the handler at the requested position
|
List<javax.xml.rpc.handler.HandlerInfo> |
getHandlerInfos()
Get the list of handler infos
|
Set<QName> |
getHeaders() |
String[] |
getRoles()
Gets SOAP actor roles registered for this HandlerChain at this SOAP node.
|
int |
getState()
Get the state of this handler chain
|
boolean |
handleFault(javax.xml.rpc.handler.MessageContext msgContext)
Initiates the SOAP fault processing for this handler chain.
|
boolean |
handleFault(javax.xml.rpc.handler.MessageContext msgContext,
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type) |
boolean |
handleRequest(javax.xml.rpc.handler.MessageContext msgContext)
Initiates the request processing for this handler chain.
|
boolean |
handleRequest(javax.xml.rpc.handler.MessageContext msgContext,
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type) |
boolean |
handleResponse(javax.xml.rpc.handler.MessageContext msgContext)
Initiates the response processing for this handler chain.
|
boolean |
handleResponse(javax.xml.rpc.handler.MessageContext msgContext,
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type) |
int |
hashCode() |
int |
indexOf(Object elem) |
void |
init(Map config)
Initializes the configuration for a HandlerChain.
|
boolean |
isEmpty() |
Iterator |
iterator() |
int |
lastIndexOf(Object elem) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
void |
pullHeaders(Set<QName> headers) |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
protected void |
replaceDirtyHandlers()
Replace handlers that did not survive the previous call
|
boolean |
retainAll(Collection c) |
Object |
set(int index,
Object element) |
void |
setRoles(String[] soapActorNames)
Sets SOAP Actor roles for this HandlerChain.
|
int |
size() |
List |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
protected String |
traceSOAPPart(String logMsg,
SOAPMessage message,
String lastMessageTrace)
Trace the SOAPPart, do nothing if the String representation is equal to the last one.
|
public static final int STATE_DOES_NOT_EXIST
public static final int STATE_CREATED
public static final int STATE_READY
public static final int STATE_DESTROYED
protected List<org.jboss.ws.core.jaxrpc.handler.HandlerChainBaseImpl.HandlerEntry> handlers
protected int falseIndex
protected int state
public HandlerChainBaseImpl(List<javax.xml.rpc.handler.HandlerInfo> infos, Set<String> roles)
public List<javax.xml.rpc.handler.HandlerInfo> getHandlerInfos()
public int getState()
public void init(Map config)
init in interface javax.xml.rpc.handler.HandlerChainconfig - Configuration for the initialization of this handler chainjavax.xml.rpc.JAXRPCException - If any error during initializationpublic void destroy()
destroy in interface javax.xml.rpc.handler.HandlerChainjavax.xml.rpc.JAXRPCException - If any error during destroypublic String[] getRoles()
getRoles in interface javax.xml.rpc.handler.HandlerChainpublic void setRoles(String[] soapActorNames)
setRoles in interface javax.xml.rpc.handler.HandlerChainsoapActorNames - URIs for SOAP actor namepublic boolean handleRequest(javax.xml.rpc.handler.MessageContext msgContext)
handleRequest in interface javax.xml.rpc.handler.HandlerChainmsgContext - MessageContext parameter provides access to the request SOAP message.javax.xml.rpc.JAXRPCException - if any processing error happenspublic boolean handleRequest(javax.xml.rpc.handler.MessageContext msgContext, org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type)
public boolean handleResponse(javax.xml.rpc.handler.MessageContext msgContext)
handleResponse in interface javax.xml.rpc.handler.HandlerChainjavax.xml.rpc.JAXRPCException - if any processing error happenspublic boolean handleResponse(javax.xml.rpc.handler.MessageContext msgContext, org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type)
public boolean handleFault(javax.xml.rpc.handler.MessageContext msgContext)
handleFault in interface javax.xml.rpc.handler.HandlerChainjavax.xml.rpc.JAXRPCException - if any processing error happenspublic boolean handleFault(javax.xml.rpc.handler.MessageContext msgContext, org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type)
protected String traceSOAPPart(String logMsg, SOAPMessage message, String lastMessageTrace)
protected void replaceDirtyHandlers()
protected javax.xml.rpc.handler.Handler getHandlerAt(int pos)
public boolean remove(Object o)
remove in interface Collectionremove in interface Listpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface Listpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Listpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface Listpublic int hashCode()
public boolean equals(Object o)
public Iterator iterator()
public ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int index)
listIterator in interface Listpublic int size()
size in interface Collectionsize in interface Listpublic void clear()
clear in interface Collectionclear in interface Listpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic int lastIndexOf(Object elem)
lastIndexOf in interface Listpublic boolean add(Object o)
add in interface Collectionadd in interface Listpublic boolean contains(Object elem)
contains in interface Collectioncontains in interface Listpublic boolean addAll(int index,
Collection c)
public boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface ListCopyright © 2013 JBoss, by Red Hat. All Rights Reserved.