|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ArrayList |
handlers
|
protected 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(List infos,
Set roles)
Constructs a handler chain with the given handlers infos |
Method Summary | |
void |
add(int index,
Object element)
|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
protected void |
checkMustUnderstand(javax.xml.rpc.handler.MessageContext msgContext)
Check if there are mustUnderstand headers that were not processed |
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 |
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 |
handleRequest(javax.xml.rpc.handler.MessageContext msgContext)
Initiates the request processing for this handler chain. |
boolean |
handleResponse(javax.xml.rpc.handler.MessageContext msgContext)
Initiates the response processing for this handler chain. |
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)
|
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(javax.xml.soap.SOAPPart soapPart,
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 ArrayList handlers
protected HashSet roles
protected int falseIndex
protected int state
Constructor Detail |
public HandlerChainBaseImpl(List infos, Set roles)
Method Detail |
public int getState()
public void init(Map config)
init
in interface javax.xml.rpc.handler.HandlerChain
config
- Configuration for the initialization of this handler chain
javax.xml.rpc.JAXRPCException
- If any error during initializationpublic void destroy()
destroy
in interface javax.xml.rpc.handler.HandlerChain
javax.xml.rpc.JAXRPCException
- If any error during destroypublic String[] getRoles()
getRoles
in interface javax.xml.rpc.handler.HandlerChain
public void setRoles(String[] soapActorNames)
setRoles
in interface javax.xml.rpc.handler.HandlerChain
soapActorNames
- URIs for SOAP actor namepublic boolean handleRequest(javax.xml.rpc.handler.MessageContext msgContext)
handleRequest
in interface javax.xml.rpc.handler.HandlerChain
msgContext
- MessageContext parameter provides access to the request SOAP message.
javax.xml.rpc.JAXRPCException
- if any processing error happenspublic boolean handleResponse(javax.xml.rpc.handler.MessageContext msgContext)
handleResponse
in interface javax.xml.rpc.handler.HandlerChain
javax.xml.rpc.JAXRPCException
- if any processing error happenspublic boolean handleFault(javax.xml.rpc.handler.MessageContext msgContext)
handleFault
in interface javax.xml.rpc.handler.HandlerChain
javax.xml.rpc.JAXRPCException
- if any processing error happensprotected String traceSOAPPart(javax.xml.soap.SOAPPart soapPart, String lastMessageTrace)
protected void replaceDirtyHandlers()
protected javax.xml.rpc.handler.Handler getHandlerAt(int pos)
protected void checkMustUnderstand(javax.xml.rpc.handler.MessageContext msgContext)
public boolean remove(Object o)
public boolean containsAll(Collection c)
containsAll
in interface List
public boolean removeAll(Collection c)
public boolean retainAll(Collection c)
public int hashCode()
public boolean equals(Object o)
public Iterator iterator()
public List subList(int fromIndex, int toIndex)
public ListIterator listIterator()
listIterator
in interface List
public ListIterator listIterator(int index)
listIterator
in interface List
public int size()
public void clear()
public boolean isEmpty()
public Object[] toArray()
public Object get(int index)
public Object remove(int index)
public void add(int index, Object element)
public int indexOf(Object elem)
public int lastIndexOf(Object elem)
lastIndexOf
in interface List
public boolean add(Object o)
public boolean contains(Object elem)
public boolean addAll(int index, Collection c)
public boolean addAll(Collection c)
public Object set(int index, Object element)
public Object[] toArray(Object[] a)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |