|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webservice.handler.HandlerChainBaseImpl
public abstract class 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)
remove
in interface Collection
remove
in interface List
public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface List
public boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface List
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface List
public int hashCode()
hashCode
in interface Collection
hashCode
in interface List
hashCode
in class Object
public boolean equals(Object o)
equals
in interface Collection
equals
in interface List
equals
in class Object
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
public List subList(int fromIndex, int toIndex)
subList
in interface List
public ListIterator listIterator()
listIterator
in interface List
public ListIterator listIterator(int index)
listIterator
in interface List
public int size()
size
in interface Collection
size
in interface List
public void clear()
clear
in interface Collection
clear
in interface List
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
public Object get(int index)
get
in interface List
public Object remove(int index)
remove
in interface List
public void add(int index, Object element)
add
in interface List
public int indexOf(Object elem)
indexOf
in interface List
public int lastIndexOf(Object elem)
lastIndexOf
in interface List
public boolean add(Object o)
add
in interface Collection
add
in interface List
public boolean contains(Object elem)
contains
in interface Collection
contains
in interface List
public boolean addAll(int index, Collection c)
addAll
in interface List
public boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface List
public Object set(int index, Object element)
set
in interface List
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |