org.apache.cxf.interceptor
Class StaxOutInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
      extended by org.apache.cxf.interceptor.StaxOutInterceptor
All Implemented Interfaces:
Interceptor<Message>, PhaseInterceptor<Message>

public class StaxOutInterceptor
extends AbstractPhaseInterceptor<Message>

Creates an XMLStreamReader from the InputStream on the Message.


Nested Class Summary
 class StaxOutInterceptor.StaxOutEndingInterceptor
           
 
Field Summary
static java.lang.String FORCE_START_DOCUMENT
           
static java.lang.String OUTPUT_STREAM_HOLDER
           
 
Constructor Summary
StaxOutInterceptor()
           
 
Method Summary
static javax.xml.stream.XMLOutputFactory getXMLOutputFactory(Message m)
           
 void handleFault(Message message)
          Called for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.
 void handleMessage(Message message)
          Intercepts a message.
 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAfter, getBefore, getId, getPhase, isGET, setAfter, setBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTPUT_STREAM_HOLDER

public static final java.lang.String OUTPUT_STREAM_HOLDER

FORCE_START_DOCUMENT

public static final java.lang.String FORCE_START_DOCUMENT
See Also:
Constant Field Values
Constructor Detail

StaxOutInterceptor

public StaxOutInterceptor()
Method Detail

handleMessage

public void handleMessage(Message message)
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.


handleFault

public void handleFault(Message message)
Description copied from interface: Interceptor
Called for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.

Specified by:
handleFault in interface Interceptor<Message>
Overrides:
handleFault in class AbstractPhaseInterceptor<Message>

getXMLOutputFactory

public static javax.xml.stream.XMLOutputFactory getXMLOutputFactory(Message m)
                                                             throws Fault
Throws:
Fault


Apache CXF