Class AuditResponseInterceptor<T extends WsAuditDataset>
- java.lang.Object
-
- org.apache.cxf.phase.AbstractPhaseInterceptor<SoapMessage>
-
- org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
-
- org.openehealth.ipf.commons.ihe.ws.cxf.AbstractSafeInterceptor
-
- org.openehealth.ipf.commons.ihe.ws.cxf.audit.AbstractAuditInterceptor<T>
-
- org.openehealth.ipf.commons.ihe.ws.cxf.audit.AuditResponseInterceptor<T>
-
- All Implemented Interfaces:
SoapInterceptor
,Interceptor<SoapMessage>
,PhaseInterceptor<SoapMessage>
public class AuditResponseInterceptor<T extends WsAuditDataset> extends AbstractAuditInterceptor<T>
CXF interceptor for ATNA auditing in WS-based IHE transactions with WSA asynchrony support. Handles response messages. Usable on client, server, and asynchronous response receiver sides.- Author:
- Dmytro Rud
-
-
Field Summary
-
Fields inherited from class org.openehealth.ipf.commons.ihe.ws.cxf.audit.AbstractAuditInterceptor
DATASET_CONTEXT_KEY
-
-
Constructor Summary
Constructors Constructor Description AuditResponseInterceptor(AuditStrategy<T> auditStrategy, AuditContext auditContext, boolean serverSide, AsynchronyCorrelator<T> correlator, boolean asyncReceiver)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
process(SoapMessage message)
Performs the actual work, being called fromAbstractSafeInterceptor.handleMessage(SoapMessage)
.-
Methods inherited from class org.openehealth.ipf.commons.ihe.ws.cxf.audit.AbstractAuditInterceptor
enrichAuditDatasetFromXuaToken, extractAddressesFromServletRequest, extractClientCertificateCommonName, extractPojo, extractUserIdFromWSAddressing, getAuditContext, getAuditDataset, getAuditStrategy, getXuaProcessor, setXuaProcessor
-
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, 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 Detail
-
AuditResponseInterceptor
public AuditResponseInterceptor(AuditStrategy<T> auditStrategy, AuditContext auditContext, boolean serverSide, AsynchronyCorrelator<T> correlator, boolean asyncReceiver)
Constructor.- Parameters:
auditStrategy
- an audit strategy instance.serverSide
- whether this interceptor is being used on the server side (true
) or on the client side (false
). Server side is where the response is generated.correlator
- correlator for asynchronous messages (null
on server side).asyncReceiver
-true
when this interceptor is installed on the asynchronous receiver side.
-
-
Method Detail
-
process
protected void process(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.
-
-