Apache CXF API

org.apache.cxf.jaxrs.client
Class AbstractClient.AbstractBodyWriter

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
      extended by org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor
          extended by org.apache.cxf.jaxrs.client.AbstractClient.AbstractBodyWriter
All Implemented Interfaces:
Interceptor<Message>, PhaseInterceptor<Message>
Enclosing class:
AbstractClient

protected abstract class AbstractClient.AbstractBodyWriter
extends AbstractOutDatabindingInterceptor


Field Summary
 
Fields inherited from class org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor
DISABLE_OUTPUTSTREAM_OPTIMIZATION, OUT_BUFFERING
 
Constructor Summary
AbstractClient.AbstractBodyWriter()
           
 
Method Summary
protected abstract  void doWriteBody(Message outMessage, Object body, Type bodyType, Annotation[] customAnns, OutputStream os)
           
 void handleMessage(Message outMessage)
          Intercepts a message.
 
Methods inherited from class org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor
getDataWriter, getXMLStreamWriter, isRequestor, shouldValidate, writeParts, writeToOutputStream
 
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
 

Constructor Detail

AbstractClient.AbstractBodyWriter

public AbstractClient.AbstractBodyWriter()
Method Detail

handleMessage

public void handleMessage(Message outMessage)
                   throws Fault
Description copied from interface: Interceptor
Intercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.

Throws:
Fault

doWriteBody

protected abstract void doWriteBody(Message outMessage,
                                    Object body,
                                    Type bodyType,
                                    Annotation[] customAnns,
                                    OutputStream os)
                             throws Fault
Throws:
Fault

Apache CXF API

Apache CXF