|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webservice.handler.HandlerChainBaseImpl
Represents a list of handlers. All elements in the HandlerChain are of the type javax.xml.rpc.handler.Handler.
Abstracts the policy and mechanism for the invocation of the registered handlers.
Field Summary | |
protected int |
falseIndex
|
protected java.util.ArrayList |
handlers
|
protected java.util.HashSet |
roles
|
protected int |
state
|
static int |
STATE_CREATED
|
static int |
STATE_DESTROYED
|
static int |
STATE_DOES_NOT_EXIST
|
static int |
STATE_READY
|
Constructor Summary | |
HandlerChainBaseImpl(java.util.List infos,
java.util.Set roles)
Constructs a handler chain with the given handlers infos |
Method Summary | |
void |
add(int index,
java.lang.Object element)
|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int index,
java.util.Collection c)
|
protected void |
checkMustUnderstand(MessageContext (src) msgContext)
Check if there are mustUnderstand headers that were not processed |
void |
clear()
|
boolean |
contains(java.lang.Object elem)
|
boolean |
containsAll(java.util.Collection c)
|
void |
destroy()
Indicates the end of lifecycle for a HandlerChain. |
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
get(int index)
|
protected Handler (src) |
getHandlerAt(int pos)
Get the handler at the requested position |
java.lang.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(MessageContext (src) msgContext)
Initiates the SOAP fault processing for this handler chain. |
boolean |
handleRequest(MessageContext (src) msgContext)
Initiates the request processing for this handler chain. |
boolean |
handleResponse(MessageContext (src) msgContext)
Initiates the response processing for this handler chain. |
int |
hashCode()
|
int |
indexOf(java.lang.Object elem)
|
void |
init(java.util.Map config)
Initializes the configuration for a HandlerChain. |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object elem)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
protected void |
replaceDirtyHandlers()
Replace handlers that did not survive the previous call |
boolean |
retainAll(java.util.Collection c)
|
java.lang.Object |
set(int index,
java.lang.Object element)
|
void |
setRoles(java.lang.String[] soapActorNames)
Sets SOAP Actor roles for this HandlerChain. |
int |
size()
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
protected java.lang.String |
traceSOAPPart(SOAPPart (src) soapPart,
java.lang.String lastMessageTrace)
Trace the SOAPPart, do nothing if the String representation is equal to the last one. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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 java.util.ArrayList handlers
protected java.util.HashSet roles
protected int falseIndex
protected int state
Constructor Detail |
public HandlerChainBaseImpl(java.util.List infos, java.util.Set roles)
Method Detail |
public int getState()
public void init(java.util.Map config)
init
in interface HandlerChain (src)
config
- Configuration for the initialization of this handler chain
JAXRPCException (src)
- If any error during initializationpublic void destroy()
destroy
in interface HandlerChain (src)
JAXRPCException (src)
- If any error during destroypublic java.lang.String[] getRoles()
getRoles
in interface HandlerChain (src)
public void setRoles(java.lang.String[] soapActorNames)
setRoles
in interface HandlerChain (src)
soapActorNames
- URIs for SOAP actor namepublic boolean handleRequest(MessageContext (src) msgContext)
handleRequest
in interface HandlerChain (src)
msgContext
- MessageContext parameter provides access to the request SOAP message.
JAXRPCException (src)
- if any processing error happenspublic boolean handleResponse(MessageContext (src) msgContext)
handleResponse
in interface HandlerChain (src)
JAXRPCException (src)
- if any processing error happenspublic boolean handleFault(MessageContext (src) msgContext)
handleFault
in interface HandlerChain (src)
JAXRPCException (src)
- if any processing error happensprotected java.lang.String traceSOAPPart(SOAPPart (src) soapPart, java.lang.String lastMessageTrace)
protected void replaceDirtyHandlers()
protected Handler (src) getHandlerAt(int pos)
protected void checkMustUnderstand(MessageContext (src) msgContext)
public boolean remove(java.lang.Object o)
remove
in interface java.util.List
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.List
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.List
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.List
public int hashCode()
hashCode
in interface java.util.List
public boolean equals(java.lang.Object o)
equals
in interface java.util.List
public java.util.Iterator iterator()
iterator
in interface java.util.List
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
public int size()
size
in interface java.util.List
public void clear()
clear
in interface java.util.List
public boolean isEmpty()
isEmpty
in interface java.util.List
public java.lang.Object[] toArray()
toArray
in interface java.util.List
public java.lang.Object get(int index)
get
in interface java.util.List
public java.lang.Object remove(int index)
remove
in interface java.util.List
public void add(int index, java.lang.Object element)
add
in interface java.util.List
public int indexOf(java.lang.Object elem)
indexOf
in interface java.util.List
public int lastIndexOf(java.lang.Object elem)
lastIndexOf
in interface java.util.List
public boolean add(java.lang.Object o)
add
in interface java.util.List
public boolean contains(java.lang.Object elem)
contains
in interface java.util.List
public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.List
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.List
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |