Class OutPayloadLoggerInterceptor
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
org.openehealth.ipf.commons.ihe.ws.cxf.payload.OutPayloadLoggerInterceptor
- All Implemented Interfaces:
org.apache.cxf.binding.soap.interceptor.SoapInterceptor
,Interceptor<org.apache.cxf.binding.soap.SoapMessage>
,PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
CXF interceptor which stores outgoing HTTP payload
into files with user-defined name patterns.
Members of WsPayloadLoggerBase
are mixed into this class.
- Author:
- Dmytro Rud
-
Constructor Summary
ConstructorDescriptionOutPayloadLoggerInterceptor
(String fileNamePattern) Instantiation, explicitly using a ExpressionResolver instance -
Method Summary
Modifier and TypeMethodDescriptionboolean
Collection<PhaseInterceptor<? extends Message>>
int
boolean
void
logPayload
(Message message) void
process
(org.apache.cxf.binding.soap.SoapMessage message) Performs the actual work, being called fromAbstractSafeInterceptor.handleMessage(SoapMessage)
.void
void
setEnabled
(boolean enabled) void
setErrorCountLimit
(int errorCountLimit) void
setExpressionResolver
(ExpressionResolver resolver) Methods inherited from class org.openehealth.ipf.commons.ihe.ws.cxf.AbstractSafeInterceptor
handleMessage
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, 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
-
OutPayloadLoggerInterceptor
-
OutPayloadLoggerInterceptor
Instantiation, explicitly using a ExpressionResolver instance- Parameters:
resolver
- ExpressionResolver instance- Since:
- 3.1
-
-
Method Details
-
getAdditionalInterceptors
- Specified by:
getAdditionalInterceptors
in interfacePhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
- Overrides:
getAdditionalInterceptors
in classAbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
-
process
public void process(org.apache.cxf.binding.soap.SoapMessage message) Description copied from class:AbstractSafeInterceptor
Performs the actual work, being called fromAbstractSafeInterceptor.handleMessage(SoapMessage)
.- Specified by:
process
in classAbstractSafeInterceptor
- Parameters:
message
- CXF message to process.
-
logPayload
-
canProcess
public boolean canProcess() -
resetErrorCount
public void resetErrorCount() -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getErrorCountLimit
public int getErrorCountLimit() -
setErrorCountLimit
public void setErrorCountLimit(int errorCountLimit) -
getExpressionResolver
-
setExpressionResolver
-