Apache CXF API

org.apache.cxf.interceptor
Class AbstractInDatabindingInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
      extended by org.apache.cxf.interceptor.AbstractInDatabindingInterceptor
All Implemented Interfaces:
Interceptor<Message>, PhaseInterceptor<Message>
Direct Known Subclasses:
BareInInterceptor, DocLiteralInInterceptor, RPCInInterceptor, SoapHeaderInterceptor, StaxDataBindingInterceptor, URIMappingInterceptor, WrappedInInterceptor, XMLFaultInInterceptor, XMLMessageInInterceptor

public abstract class AbstractInDatabindingInterceptor
extends AbstractPhaseInterceptor<Message>


Field Summary
static String NO_VALIDATE_PARTS
           
 
Constructor Summary
AbstractInDatabindingInterceptor(String phase)
           
AbstractInDatabindingInterceptor(String i, String phase)
           
 
Method Summary
protected  MessagePartInfo findMessagePart(Exchange exchange, Collection<OperationInfo> operations, QName name, boolean client, int index, Message message)
          Find the next possible message part in the message.
protected  BindingOperationInfo getBindingOperationInfo(Exchange exchange, QName name, boolean client)
          Returns a BindingOperationInfo if the operation is indentified as a wrapped method, return null if it is not a wrapped method (i.e., it is a bare method)
protected  DataReader<javax.xml.stream.XMLStreamReader> getDataReader(Message message)
           
protected
<T> DataReader<T>
getDataReader(Message message, Class<T> input)
           
protected  MessageInfo getMessageInfo(Message message, BindingOperationInfo operation)
           
protected  MessageInfo getMessageInfo(Message message, BindingOperationInfo operation, boolean requestor)
           
protected  DataReader<Node> getNodeDataReader(Message message)
           
protected  DepthXMLStreamReader getXMLStreamReader(Message message)
           
protected  boolean isRequestor(Message message)
          Determine if current messaging role is that of requestor.
protected  MessageInfo setMessage(Message message, BindingOperationInfo operation, boolean requestor, ServiceInfo si, MessageInfo msgInfo)
           
protected  boolean supportsDataReader(Message message, Class<?> input)
           
 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, setAfter, setBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.interceptor.Interceptor
handleMessage
 

Field Detail

NO_VALIDATE_PARTS

public static final String NO_VALIDATE_PARTS
Constructor Detail

AbstractInDatabindingInterceptor

public AbstractInDatabindingInterceptor(String phase)

AbstractInDatabindingInterceptor

public AbstractInDatabindingInterceptor(String i,
                                        String phase)
Method Detail

isRequestor

protected boolean isRequestor(Message message)
Description copied from class: AbstractPhaseInterceptor
Determine if current messaging role is that of requestor.

Overrides:
isRequestor in class AbstractPhaseInterceptor<Message>
Parameters:
message - the current Message
Returns:
true if the current messaging role is that of requestor

supportsDataReader

protected boolean supportsDataReader(Message message,
                                     Class<?> input)

getDataReader

protected <T> DataReader<T> getDataReader(Message message,
                                          Class<T> input)

getDataReader

protected DataReader<javax.xml.stream.XMLStreamReader> getDataReader(Message message)

getNodeDataReader

protected DataReader<Node> getNodeDataReader(Message message)

getXMLStreamReader

protected DepthXMLStreamReader getXMLStreamReader(Message message)

findMessagePart

protected MessagePartInfo findMessagePart(Exchange exchange,
                                          Collection<OperationInfo> operations,
                                          QName name,
                                          boolean client,
                                          int index,
                                          Message message)
Find the next possible message part in the message. If an operation in the list of operations is no longer a viable match, it will be removed from the Collection.

Parameters:
exchange -
operations -
name -
client -
index -
Returns:

setMessage

protected MessageInfo setMessage(Message message,
                                 BindingOperationInfo operation,
                                 boolean requestor,
                                 ServiceInfo si,
                                 MessageInfo msgInfo)

getBindingOperationInfo

protected BindingOperationInfo getBindingOperationInfo(Exchange exchange,
                                                       QName name,
                                                       boolean client)
Returns a BindingOperationInfo if the operation is indentified as a wrapped method, return null if it is not a wrapped method (i.e., it is a bare method)

Parameters:
exchange -
name -
client -
Returns:

getMessageInfo

protected MessageInfo getMessageInfo(Message message,
                                     BindingOperationInfo operation)

getMessageInfo

protected MessageInfo getMessageInfo(Message message,
                                     BindingOperationInfo operation,
                                     boolean requestor)

Apache CXF API

Apache CXF