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,org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>,org.apache.cxf.phase.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.AbstractSoapInterceptorCXF interceptor which logs all errors instead of letting them break the processing flow.- Author:
- Dmytro Rud
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSafeInterceptor(String phase)Constructs the interceptor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidhandleMessage(org.apache.cxf.binding.soap.SoapMessage message)Callsprocess(org.apache.cxf.binding.soap.SoapMessage)and "forwards" all exceptions to the error log.protected abstract voidprocess(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
-
-
-
-
Constructor Detail
-
AbstractSafeInterceptor
protected AbstractSafeInterceptor(String phase)
Constructs the interceptor.- Parameters:
phase- the phase in which the interceptor is run.
-
-
Method Detail
-
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.
-
-