public abstract class HandlerChainBaseImpl extends Object implements 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<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 Handler |
getHandlerAt(int pos)
Get the handler at the requested position
|
List<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(MessageContext msgContext)
Initiates the SOAP fault processing for this handler chain.
|
boolean |
handleFault(MessageContext msgContext,
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type) |
boolean |
handleRequest(MessageContext msgContext)
Initiates the request processing for this handler chain.
|
boolean |
handleRequest(MessageContext msgContext,
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type) |
boolean |
handleResponse(MessageContext msgContext)
Initiates the response processing for this handler chain.
|
boolean |
handleResponse(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<HandlerInfo> infos, Set<String> roles)
public List<HandlerInfo> getHandlerInfos()
public int getState()
public void init(Map config)
init
in interface HandlerChain
config
- Configuration for the initialization of this handler chainJAXRPCException
- If any error during initializationpublic void destroy()
destroy
in interface HandlerChain
JAXRPCException
- If any error during destroypublic String[] getRoles()
getRoles
in interface HandlerChain
public void setRoles(String[] soapActorNames)
setRoles
in interface HandlerChain
soapActorNames
- URIs for SOAP actor namepublic boolean handleRequest(MessageContext msgContext)
handleRequest
in interface HandlerChain
msgContext
- MessageContext parameter provides access to the request SOAP message.JAXRPCException
- if any processing error happenspublic boolean handleRequest(MessageContext msgContext, org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type)
public boolean handleResponse(MessageContext msgContext)
handleResponse
in interface HandlerChain
JAXRPCException
- if any processing error happenspublic boolean handleResponse(MessageContext msgContext, org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type)
public boolean handleFault(MessageContext msgContext)
handleFault
in interface HandlerChain
JAXRPCException
- if any processing error happenspublic boolean handleFault(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 Handler getHandlerAt(int pos)
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()
public boolean equals(Object o)
public Iterator iterator()
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 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)
public boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface List
Copyright © 2018 JBoss by Red Hat. All rights reserved.