|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
org.apache.cxf.ws.addressing.soap.MAPCodec
public class MAPCodec
SOAP interceptor responsible for {en|de}coding the Message Addressing Properties for {outgo|incom}ing messages.
| Nested Class Summary | |
|---|---|
static interface |
MAPCodec.HeaderFactory
|
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,org.apache.cxf.message.Exchange> |
uncorrelatedExchanges
REVISIT: map usage that the *same* interceptor instance is used in all chains. |
| Constructor Summary | |
|---|---|
MAPCodec()
Constructor. |
|
| Method Summary | ||
|---|---|---|
|
decodeAsNative(java.lang.String encodedAs,
java.lang.Class<T> clz,
org.w3c.dom.Element headerElement,
javax.xml.bind.Unmarshaller unmarshaller)
Decodes a MAP from a exposed version. |
|
protected
|
decodeMAP(java.lang.Class<T> clz,
org.w3c.dom.Element headerElement,
javax.xml.bind.Unmarshaller unmarshaller)
Decodes a MAP from a SOAP header. |
|
protected
|
encodeMAP(T value,
javax.xml.namespace.QName qname,
java.lang.Class<T> clz,
org.w3c.dom.Element header,
javax.xml.bind.Marshaller marshaller)
Encodes an MAP as a SOAP header. |
|
protected MAPCodec.HeaderFactory |
getHeaderFactory()
|
|
java.util.Map<java.lang.String,org.apache.cxf.message.Exchange> |
getUncorrelatedExchanges()
|
|
java.util.Set<javax.xml.namespace.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. |
|
| Methods inherited from class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor |
|---|
getFaultCodePrefix, getRoles, isRequestor |
| Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor |
|---|
addAfter, addAfter, addBefore, addBefore, getAfter, getBefore, getId, getPhase, isGET, setAfter, setBefore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.Map<java.lang.String,org.apache.cxf.message.Exchange> uncorrelatedExchanges
| Constructor Detail |
|---|
public MAPCodec()
| Method Detail |
|---|
public java.util.Map<java.lang.String,org.apache.cxf.message.Exchange> getUncorrelatedExchanges()
public java.util.Set<javax.xml.namespace.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 MAPs
SOAPFaultException - if decoded MAPs are invalid
public <T> T decodeAsNative(java.lang.String encodedAs,
java.lang.Class<T> clz,
org.w3c.dom.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 use
javax.xml.bind.JAXBException
protected <T> void encodeMAP(T value,
javax.xml.namespace.QName qname,
java.lang.Class<T> clz,
org.w3c.dom.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 use
javax.xml.bind.JAXBException
protected <T> T decodeMAP(java.lang.Class<T> clz,
org.w3c.dom.Element headerElement,
javax.xml.bind.Unmarshaller unmarshaller)
throws javax.xml.bind.JAXBException
clz - the classheaderElement - the SOAP header elementmarshaller - the JAXB marshaller to use
javax.xml.bind.JAXBExceptionprotected MAPCodec.HeaderFactory getHeaderFactory()
protected void setHeaderFactory(MAPCodec.HeaderFactory factory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||