Class MustUnderstandDecoratorInterceptor
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.MustUnderstandDecoratorInterceptor
- All Implemented Interfaces:
org.apache.cxf.binding.soap.interceptor.SoapInterceptor
,Interceptor<org.apache.cxf.binding.soap.SoapMessage>
,PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
public class MustUnderstandDecoratorInterceptor
extends org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
CXF Interceptor to tag SOAP headers with an
mustUnderstand
flag.- Author:
- Jens Riemschneider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an item to the list of SOAP headers which are to be flagged withmustUnderstand
.void
addHeaders
(List<String> headers) Adds a set of SOAP headers which are to be flagged withmustUnderstand
.void
handleMessage
(org.apache.cxf.binding.soap.SoapMessage message) 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
-
MustUnderstandDecoratorInterceptor
public MustUnderstandDecoratorInterceptor()Constructs the interceptor.
-
-
Method Details
-
handleMessage
- Throws:
Fault
-
addHeaders
Adds a set of SOAP headers which are to be flagged withmustUnderstand
.- Parameters:
headers
- the headers to flag, represented as Strings
-
addHeader
Adds an item to the list of SOAP headers which are to be flagged withmustUnderstand
.- Parameters:
header
- the header to flag.
-