public class MAPCodec extends AbstractSoapInterceptor
Modifier and Type | Class and Description |
---|---|
static interface |
MAPCodec.HeaderFactory |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Exchange> |
uncorrelatedExchanges
REVISIT: map usage that the *same* interceptor instance
is used in all chains.
|
Constructor and Description |
---|
MAPCodec()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
decodeAsNative(String encodedAs,
Class<T> clz,
Element headerElement,
Unmarshaller unmarshaller)
Decodes a MAP from a exposed version.
|
protected <T> T |
decodeMAP(Class<T> clz,
Element headerElement,
Unmarshaller unmarshaller)
Decodes a MAP from a SOAP header.
|
protected <T> void |
encodeMAP(SoapMessage message,
T value,
QName qname,
Class<T> clz,
JAXBContext ctx,
boolean mustUnderstand)
Encodes an MAP as a SOAP header.
|
protected MAPCodec.HeaderFactory |
getHeaderFactory() |
Map<String,Exchange> |
getUncorrelatedExchanges() |
Set<QName> |
getUnderstoodHeaders() |
void |
handleFault(SoapMessage message)
Invoked when unwinding normal interceptor chain when a fault occurred.
|
void |
handleMessage(SoapMessage message)
Invoked for normal processing of inbound and outbound messages.
|
protected void |
setHeaderFactory(MAPCodec.HeaderFactory factory) |
AddressingProperties |
unmarshalMAPs(SoapMessage message)
Decode the MAPs from protocol-specific headers.
|
getFaultCodePrefix, getRoles, prepareStackTrace
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, isGET, isRequestor, setAfter, setBefore
public Set<QName> getUnderstoodHeaders()
getUnderstoodHeaders
in interface SoapInterceptor
getUnderstoodHeaders
in class AbstractSoapInterceptor
public void handleMessage(SoapMessage message)
message
- the messsagepublic void handleFault(SoapMessage message)
handleFault
in interface Interceptor<SoapMessage>
handleFault
in class AbstractPhaseInterceptor<SoapMessage>
message
- the messsage messagepublic AddressingProperties unmarshalMAPs(SoapMessage message)
message
- the SOAP messagethe
- decoded MAPsSOAPFaultException
- if decoded MAPs are invalidpublic <T> T decodeAsNative(String encodedAs, Class<T> clz, Element headerElement, Unmarshaller unmarshaller) throws JAXBException
encodedAs
- specifies the encoded versionclz
- the classheaderElement
- the SOAP header elementmarshaller
- the JAXB marshaller to useJAXBException
protected <T> void encodeMAP(SoapMessage message, T value, QName qname, Class<T> clz, JAXBContext ctx, boolean mustUnderstand) throws JAXBException
message
- the message to store the headers onvalue
- the value to encodeqname
- the QName for the headerclz
- the classheader
- the SOAP header elementmarshaller
- the JAXB context to useJAXBException
protected <T> T decodeMAP(Class<T> clz, Element headerElement, Unmarshaller unmarshaller) throws JAXBException
clz
- the classheaderElement
- the SOAP header elementmarshaller
- the JAXB marshaller to useJAXBException
protected MAPCodec.HeaderFactory getHeaderFactory()
protected void setHeaderFactory(MAPCodec.HeaderFactory factory)
Apache CXF