Class AbstractSafeInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
org.openehealth.ipf.commons.ihe.ws.cxf.AbstractSafeInterceptor
- All Implemented Interfaces:
org.apache.cxf.binding.soap.interceptor.SoapInterceptor
,Interceptor<org.apache.cxf.binding.soap.SoapMessage>
,PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
- Direct Known Subclasses:
AbstractAuditInterceptor
,FaultMessageOutInterceptor
,InPayloadLoggerInterceptor
,OutPayloadLoggerInterceptor
public abstract class AbstractSafeInterceptor
extends org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
CXF interceptor which logs all errors instead of
letting them break the processing flow.
- Author:
- Dmytro Rud
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractSafeInterceptor
(String phase) Constructs the interceptor. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
handleMessage
(org.apache.cxf.binding.soap.SoapMessage message) Callsprocess(org.apache.cxf.binding.soap.SoapMessage)
and "forwards" all exceptions to the error log.protected abstract void
process
(org.apache.cxf.binding.soap.SoapMessage message) Performs the actual work, being called fromhandleMessage(SoapMessage)
.Methods inherited from class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
getFaultCodePrefix, getRoles, getUnderstoodHeaders, prepareStackTrace
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cxf.interceptor.Interceptor
handleFault
-
Constructor Details
-
AbstractSafeInterceptor
Constructs the interceptor.- Parameters:
phase
- the phase in which the interceptor is run.
-
-
Method Details
-
process
protected abstract void process(org.apache.cxf.binding.soap.SoapMessage message) Performs the actual work, being called fromhandleMessage(SoapMessage)
.- Parameters:
message
- CXF message to process.
-
handleMessage
public final void handleMessage(org.apache.cxf.binding.soap.SoapMessage message) Callsprocess(org.apache.cxf.binding.soap.SoapMessage)
and "forwards" all exceptions to the error log.- Parameters:
message
- CXF message to process.
-