public class MAPCodec
extends org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
| Modifier and Type | Class and Description |
|---|---|
static interface |
MAPCodec.HeaderFactory |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,org.apache.cxf.message.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,
javax.xml.bind.Unmarshaller unmarshaller)
Decodes a MAP from a exposed version.
|
protected <T> T |
decodeMAP(Class<T> clz,
Element headerElement,
javax.xml.bind.Unmarshaller unmarshaller)
Decodes a MAP from a SOAP header.
|
protected <T> void |
encodeMAP(T value,
QName qname,
Class<T> clz,
Element header,
javax.xml.bind.Marshaller marshaller)
Encodes an MAP as a SOAP header.
|
protected MAPCodec.HeaderFactory |
getHeaderFactory() |
Map<String,org.apache.cxf.message.Exchange> |
getUncorrelatedExchanges() |
Set<QName> |
getUnderstoodHeaders() |
void |
handleFault(org.apache.cxf.binding.soap.SoapMessage message)
Invoked when unwinding normal interceptor chain when a fault occurred.
|
void |
handleMessage(org.apache.cxf.binding.soap.SoapMessage message)
Invoked for normal processing of inbound and outbound messages.
|
protected void |
setHeaderFactory(MAPCodec.HeaderFactory factory) |
org.apache.cxf.ws.addressing.AddressingProperties |
unmarshalMAPs(org.apache.cxf.binding.soap.SoapMessage message)
Decode the MAPs from protocol-specific headers.
|
getFaultCodePrefix, getRoles, prepareStackTracepublic Map<String,org.apache.cxf.message.Exchange> getUncorrelatedExchanges()
public Set<QName> getUnderstoodHeaders()
getUnderstoodHeaders in interface org.apache.cxf.binding.soap.interceptor.SoapInterceptorgetUnderstoodHeaders in class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptorpublic void handleMessage(org.apache.cxf.binding.soap.SoapMessage message)
message - the messsagepublic void handleFault(org.apache.cxf.binding.soap.SoapMessage message)
handleFault in interface org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>handleFault in class org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>message - the messsage messagepublic org.apache.cxf.ws.addressing.AddressingProperties unmarshalMAPs(org.apache.cxf.binding.soap.SoapMessage message)
message - the SOAP messagethe - decoded MAPsSOAPFaultException - if decoded MAPs are invalidpublic <T> T decodeAsNative(String encodedAs, Class<T> clz, Element headerElement, javax.xml.bind.Unmarshaller unmarshaller) throws javax.xml.bind.JAXBException
encodedAs - specifies the encoded versionclz - the classheaderElement - the SOAP header elementmarshaller - the JAXB marshaller to usejavax.xml.bind.JAXBExceptionprotected <T> void encodeMAP(T value,
QName qname,
Class<T> clz,
Element header,
javax.xml.bind.Marshaller marshaller)
throws javax.xml.bind.JAXBException
value - the value to encodeqname - the QName for the headerclz - the classheader - the SOAP header elementmarshaller - the JAXB marshaller to usejavax.xml.bind.JAXBExceptionprotected <T> T decodeMAP(Class<T> clz, Element headerElement, javax.xml.bind.Unmarshaller unmarshaller) throws javax.xml.bind.JAXBException
clz - the classheaderElement - the SOAP header elementmarshaller - the JAXB marshaller to usejavax.xml.bind.JAXBExceptionprotected MAPCodec.HeaderFactory getHeaderFactory()
protected void setHeaderFactory(MAPCodec.HeaderFactory factory)
Apache CXF