Package org.apache.cxf.interceptor
Class StaxOutInterceptor
- java.lang.Object
- 
- org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
- 
- org.apache.cxf.interceptor.StaxOutInterceptor
 
 
- 
- All Implemented Interfaces:
- Interceptor<Message>,- PhaseInterceptor<Message>
 
 public class StaxOutInterceptor extends AbstractPhaseInterceptor<Message> Creates an XMLStreamWriter from the OutputStream on the Message.
- 
- 
Field SummaryFields Modifier and Type Field Description static StaxOutEndingInterceptorENDINGstatic StringFORCE_START_DOCUMENTstatic StringOUTPUT_STREAM_HOLDERstatic StringWRITER_HOLDER
 - 
Constructor SummaryConstructors Constructor Description StaxOutInterceptor()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XMLOutputFactorygetXMLOutputFactory(Message m)voidhandleFault(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.voidhandleMessage(Message message)Intercepts a message.- 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptoraddAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, isGET, isRequestor, setAfter, setBefore
 
- 
 
- 
- 
- 
Field Detail- 
OUTPUT_STREAM_HOLDERpublic static final String OUTPUT_STREAM_HOLDER 
 - 
WRITER_HOLDERpublic static final String WRITER_HOLDER 
 - 
FORCE_START_DOCUMENTpublic static final String FORCE_START_DOCUMENT - See Also:
- Constant Field Values
 
 - 
ENDINGpublic static final StaxOutEndingInterceptor ENDING 
 
- 
 - 
Method Detail- 
handleMessagepublic void handleMessage(Message message) Description copied from interface:InterceptorIntercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.
 - 
handleFaultpublic void handleFault(Message message) Description copied from interface:InterceptorCalled 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:
- handleFaultin interface- Interceptor<Message>
- Overrides:
- handleFaultin class- AbstractPhaseInterceptor<Message>
 
 - 
getXMLOutputFactorypublic static XMLOutputFactory getXMLOutputFactory(Message m) - Throws:
- Fault
 
 
- 
 
-