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,org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>,org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
public class MustUnderstandDecoratorInterceptor extends org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptorCXF Interceptor to tag SOAP headers with anmustUnderstandflag.- Author:
- Jens Riemschneider
-
-
Constructor Summary
Constructors Constructor Description MustUnderstandDecoratorInterceptor()Constructs the interceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHeader(QName header)Adds an item to the list of SOAP headers which are to be flagged withmustUnderstand.voidaddHeaders(List<String> headers)Adds a set of SOAP headers which are to be flagged withmustUnderstand.voidhandleMessage(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
-
-
-
-
Method Detail
-
handleMessage
public void handleMessage(org.apache.cxf.binding.soap.SoapMessage message) throws org.apache.cxf.interceptor.Fault- Throws:
org.apache.cxf.interceptor.Fault
-
addHeaders
public void addHeaders(List<String> headers)
Adds a set of SOAP headers which are to be flagged withmustUnderstand.- Parameters:
headers- the headers to flag, represented as Strings
-
addHeader
public void addHeader(QName header)
Adds an item to the list of SOAP headers which are to be flagged withmustUnderstand.- Parameters:
header- the header to flag.
-
-