Class AuditResponseInterceptor<T extends WsAuditDataset>
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.audit.AbstractAuditInterceptor<T>
org.openehealth.ipf.commons.ihe.ws.cxf.audit.AuditResponseInterceptor<T>
- 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 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
ConstructorDescriptionAuditResponseInterceptor
(AuditStrategy<T> auditStrategy, AuditContext auditContext, boolean serverSide, AsynchronyCorrelator<T> correlator, boolean asyncReceiver) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
process
(org.apache.cxf.binding.soap.SoapMessage message) Performs the actual work, being called fromAbstractSafeInterceptor.handleMessage(SoapMessage)
.Methods inherited from class org.openehealth.ipf.commons.ihe.ws.cxf.audit.AbstractAuditInterceptor
enrichAuditDatasetFromRequest, enrichAuditDatasetFromResponse, extractAddressesFromServletRequest, extractClientCertificateCommonName, extractPojo, extractUserIdFromWSAddressing, getAuditContext, getAuditDataset, getAuditStrategy
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 Details
-
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 Details
-
process
protected 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.
-