public class MAPCodec extends AbstractSoapInterceptor
| Modifier and Type | Class and Description |
|---|---|
static interface |
MAPCodec.HeaderFactory |
| Modifier and Type | Field and Description |
|---|---|
static MAPCodec |
INSTANCE |
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() |
static MAPCodec |
getInstance(Bus bus) |
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, prepareStackTraceaddAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, isGET, isRequestor, setAfter, setBeforepublic static final MAPCodec INSTANCE
public Set<QName> getUnderstoodHeaders()
getUnderstoodHeaders in interface SoapInterceptorgetUnderstoodHeaders in class AbstractSoapInterceptorpublic 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 useJAXBExceptionprotected <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 useJAXBExceptionprotected <T> T decodeMAP(Class<T> clz, Element headerElement, Unmarshaller unmarshaller) throws JAXBException
clz - the classheaderElement - the SOAP header elementmarshaller - the JAXB marshaller to useJAXBExceptionprotected MAPCodec.HeaderFactory getHeaderFactory()
protected void setHeaderFactory(MAPCodec.HeaderFactory factory)
Apache CXF