Package org.apache.axis.handlers
Class HandlerChainImpl
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList
-
- org.apache.axis.handlers.HandlerChainImpl
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable
,java.util.Collection
,java.util.List
,java.util.RandomAccess
,HandlerChain
public class HandlerChainImpl extends java.util.ArrayList implements HandlerChain
Implementation of HandlerChain- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List
handlerInfos
static java.lang.String
JAXRPC_METHOD_INFO
protected static org.apache.commons.logging.Log
log
-
Constructor Summary
Constructors Constructor Description HandlerChainImpl()
HandlerChainImpl(java.util.List handlerInfos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNewHandler(java.lang.String className, java.util.Map config)
void
destroy()
Indicates the end of lifecycle for a HandlerChain.java.util.ArrayList
getMessageInfo(SOAPMessage message)
java.lang.String[]
getRoles()
Gets SOAP actor roles registered for this HandlerChain at this SOAP node.boolean
handleFault(MessageContext _context)
ThehandleFault
method initiates the SOAP fault processing for this handler chain.boolean
handleRequest(MessageContext _context)
ThehandleRequest
method initiates the request processing for this handler chain.boolean
handleResponse(MessageContext context)
ThehandleResponse
method initiates the response processing for this handler chain.void
init(java.util.Map map)
Initializes the configuration for a HandlerChain.void
setRoles(java.lang.String[] roles)
Sets SOAP Actor roles for thisHandlerChain
.-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
-
-
-
Field Detail
-
log
protected static org.apache.commons.logging.Log log
-
JAXRPC_METHOD_INFO
public static final java.lang.String JAXRPC_METHOD_INFO
- See Also:
- Constant Field Values
-
handlerInfos
protected java.util.List handlerInfos
-
-
Method Detail
-
getRoles
public java.lang.String[] getRoles()
Description copied from interface:HandlerChain
Gets SOAP actor roles registered for this HandlerChain at this SOAP node. The returned array includes the special SOAP actornext
.- Specified by:
getRoles
in interfaceHandlerChain
- Returns:
- String[] SOAP Actor roles as URIs
-
setRoles
public void setRoles(java.lang.String[] roles)
Description copied from interface:HandlerChain
Sets SOAP Actor roles for thisHandlerChain
. This specifies the set of roles in which this HandlerChain is to act for the SOAP message processing at this SOAP node. These roles assumed by a HandlerChain must be invariant during the processing of an individual SOAP message through the HandlerChain.A
HandlerChain
always acts in the role of the special SOAP actornext
. Refer to the SOAP specification for the URI name for this special SOAP actor. There is no need to set this special role using this method.- Specified by:
setRoles
in interfaceHandlerChain
- Parameters:
roles
- URIs for SOAP actor name
-
init
public void init(java.util.Map map)
Description copied from interface:HandlerChain
Initializes the configuration for a HandlerChain.- Specified by:
init
in interfaceHandlerChain
- Parameters:
map
- Configuration for the initialization of this handler chain
-
addNewHandler
public void addNewHandler(java.lang.String className, java.util.Map config)
-
handleFault
public boolean handleFault(MessageContext _context)
Description copied from interface:HandlerChain
ThehandleFault
method initiates the SOAP fault processing for this handler chain.- Specified by:
handleFault
in interfaceHandlerChain
- Parameters:
_context
- MessageContext parameter provides access to the SOAP message.- Returns:
- Returns boolean Returns
true
if all handlers in chain have been processed. Returnsfalse
if a handler in the chain returnedfalse
from its handleFault method.
-
getMessageInfo
public java.util.ArrayList getMessageInfo(SOAPMessage message)
-
handleRequest
public boolean handleRequest(MessageContext _context)
Description copied from interface:HandlerChain
ThehandleRequest
method initiates the request processing for this handler chain.- Specified by:
handleRequest
in interfaceHandlerChain
- Parameters:
_context
- MessageContext parameter provides access to the request SOAP message.- Returns:
- boolean Returns
true
if all handlers in chain have been processed. Returnsfalse
if a handler in the chain returnedfalse
from its handleRequest method.
-
handleResponse
public boolean handleResponse(MessageContext context)
Description copied from interface:HandlerChain
ThehandleResponse
method initiates the response processing for this handler chain.- Specified by:
handleResponse
in interfaceHandlerChain
- Parameters:
context
- MessageContext parameter provides access to the response SOAP message.- Returns:
- boolean Returns
true
if all handlers in chain have been processed. Returnsfalse
if a handler in the chain returnedfalse
from its handleResponse method.
-
destroy
public void destroy()
Description copied from interface:HandlerChain
Indicates the end of lifecycle for a HandlerChain.- Specified by:
destroy
in interfaceHandlerChain
-
-