Package org.apache.cxf.jaxrs.interceptor
Class JAXRSDefaultFaultOutInterceptor
- java.lang.Object
-
- org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
-
- org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor
-
- org.apache.cxf.jaxrs.interceptor.JAXRSDefaultFaultOutInterceptor
-
- All Implemented Interfaces:
Interceptor<Message>,PhaseInterceptor<Message>
public class JAXRSDefaultFaultOutInterceptor extends AbstractOutDatabindingInterceptor
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor
DISABLE_OUTPUTSTREAM_OPTIMIZATION, OUT_BUFFERING
-
-
Constructor Summary
Constructors Constructor Description JAXRSDefaultFaultOutInterceptor()JAXRSDefaultFaultOutInterceptor(String phase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.protected booleanmustPropogateException(Message m)-
Methods inherited from class org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor
getDataWriter, getXMLStreamWriter, setOperationSchemaValidation, shouldBuffer, shouldValidate, writeParts, writeToOutputStream
-
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, isGET, isRequestor, setAfter, setBefore
-
-
-
-
Constructor Detail
-
JAXRSDefaultFaultOutInterceptor
public JAXRSDefaultFaultOutInterceptor()
-
JAXRSDefaultFaultOutInterceptor
public JAXRSDefaultFaultOutInterceptor(String phase)
-
-
Method Detail
-
handleMessage
public void handleMessage(Message message) throws Fault
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.- Throws:
Fault
-
handleFault
public void handleFault(Message message) throws Fault
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 interfaceInterceptor<Message>- Overrides:
handleFaultin classAbstractPhaseInterceptor<Message>- Throws:
Fault
-
mustPropogateException
protected boolean mustPropogateException(Message m)
-
-