org.apache.cxf.interceptor
Class AbstractInDatabindingInterceptor

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

public abstract class AbstractInDatabindingInterceptor
extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>


Field Summary
static String NO_VALIDATE_PARTS
           
 
Constructor Summary
AbstractInDatabindingInterceptor(String phase)
           
AbstractInDatabindingInterceptor(String i, String phase)
           
 
Method Summary
protected  org.apache.cxf.service.model.MessagePartInfo findMessagePart(org.apache.cxf.message.Exchange exchange, Collection<org.apache.cxf.service.model.OperationInfo> operations, QName name, boolean client, int index, org.apache.cxf.message.Message message)
          Find the next possible message part in the message.
protected  org.apache.cxf.service.model.BindingOperationInfo getBindingOperationInfo(org.apache.cxf.message.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  org.apache.cxf.databinding.DataReader<javax.xml.stream.XMLStreamReader> getDataReader(org.apache.cxf.message.Message message)
           
protected
<T> org.apache.cxf.databinding.DataReader<T>
getDataReader(org.apache.cxf.message.Message message, Class<T> input)
           
protected  org.apache.cxf.service.model.MessageInfo getMessageInfo(org.apache.cxf.message.Message message, org.apache.cxf.service.model.BindingOperationInfo operation)
           
protected  org.apache.cxf.service.model.MessageInfo getMessageInfo(org.apache.cxf.message.Message message, org.apache.cxf.service.model.BindingOperationInfo operation, boolean requestor)
           
protected  org.apache.cxf.databinding.DataReader<Node> getNodeDataReader(org.apache.cxf.message.Message message)
           
protected  org.apache.cxf.staxutils.DepthXMLStreamReader getXMLStreamReader(org.apache.cxf.message.Message message)
           
protected  boolean isRequestor(org.apache.cxf.message.Message message)
           
protected  org.apache.cxf.service.model.MessageInfo setMessage(org.apache.cxf.message.Message message, org.apache.cxf.service.model.BindingOperationInfo operation, boolean requestor, org.apache.cxf.service.model.ServiceInfo si, org.apache.cxf.service.model.MessageInfo msgInfo)
           
protected  boolean supportsDataReader(org.apache.cxf.message.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(org.apache.cxf.message.Message message)
Overrides:
isRequestor in class org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>

supportsDataReader

protected boolean supportsDataReader(org.apache.cxf.message.Message message,
                                     Class<?> input)

getDataReader

protected <T> org.apache.cxf.databinding.DataReader<T> getDataReader(org.apache.cxf.message.Message message,
                                                                     Class<T> input)

getDataReader

protected org.apache.cxf.databinding.DataReader<javax.xml.stream.XMLStreamReader> getDataReader(org.apache.cxf.message.Message message)

getNodeDataReader

protected org.apache.cxf.databinding.DataReader<Node> getNodeDataReader(org.apache.cxf.message.Message message)

getXMLStreamReader

protected org.apache.cxf.staxutils.DepthXMLStreamReader getXMLStreamReader(org.apache.cxf.message.Message message)

findMessagePart

protected org.apache.cxf.service.model.MessagePartInfo findMessagePart(org.apache.cxf.message.Exchange exchange,
                                                                       Collection<org.apache.cxf.service.model.OperationInfo> operations,
                                                                       QName name,
                                                                       boolean client,
                                                                       int index,
                                                                       org.apache.cxf.message.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 org.apache.cxf.service.model.MessageInfo setMessage(org.apache.cxf.message.Message message,
                                                              org.apache.cxf.service.model.BindingOperationInfo operation,
                                                              boolean requestor,
                                                              org.apache.cxf.service.model.ServiceInfo si,
                                                              org.apache.cxf.service.model.MessageInfo msgInfo)

getBindingOperationInfo

protected org.apache.cxf.service.model.BindingOperationInfo getBindingOperationInfo(org.apache.cxf.message.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 org.apache.cxf.service.model.MessageInfo getMessageInfo(org.apache.cxf.message.Message message,
                                                                  org.apache.cxf.service.model.BindingOperationInfo operation)

getMessageInfo

protected org.apache.cxf.service.model.MessageInfo getMessageInfo(org.apache.cxf.message.Message message,
                                                                  org.apache.cxf.service.model.BindingOperationInfo operation,
                                                                  boolean requestor)


Apache CXF