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 Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final StaxOutEndingInterceptor`
  `ENDING`
  `static final String`
  `FORCE_START_DOCUMENT`
  `static final String`
  `OUTPUT_STREAM_HOLDER`
  `static final String`
  `WRITER_HOLDER`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StaxOutInterceptor()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static 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, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, isGET, isRequestor, setAfter, setBefore`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### OUTPUT_STREAM_HOLDER

    public static final String OUTPUT_STREAM_HOLDER

  - ### WRITER_HOLDER

    public static final String WRITER_HOLDER

  - ### FORCE_START_DOCUMENT

    public static final String FORCE_START_DOCUMENT
    See Also:
      - Constant Field Values

  - ### ENDING

    public static final StaxOutEndingInterceptor ENDING

- ## Constructor Details

  - ### StaxOutInterceptor

    public StaxOutInterceptor()

- ## Method Details

  - ### 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.
    Parameters:
      `message` -

  - ### 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>`
    Parameters:
      `message` -

  - ### getXMLOutputFactory

    public static XMLOutputFactory getXMLOutputFactory(Message m)
    Throws:
      `Fault`