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
ConstructorsConstructorDescriptionAuditResponseInterceptor(AuditStrategy<T> auditStrategy, AuditContext auditContext, boolean serverSide, AsynchronyCorrelator<T> correlator, boolean asyncReceiver) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocess(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, getAuditStrategyMethods inherited from class org.openehealth.ipf.commons.ihe.ws.cxf.AbstractSafeInterceptor
handleMessageMethods inherited from class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
getFaultCodePrefix, getRoles, getUnderstoodHeaders, prepareStackTraceMethods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBeforeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 (nullon server side).asyncReceiver-truewhen 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:AbstractSafeInterceptorPerforms the actual work, being called fromAbstractSafeInterceptor.handleMessage(SoapMessage).- Specified by:
processin classAbstractSafeInterceptor- Parameters:
message- CXF message to process.
-