|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.phase.AbstractPhaseInterceptor<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 Map<String,Exchange> |
uncorrelatedExchanges
REVISIT: map usage that the *same* interceptor instance is used in all chains. |
| Constructor Summary | |
|---|---|
MAPCodec()
Constructor. |
|
| Method Summary | ||
|---|---|---|
|
decodeAsNative(String encodedAs,
Class<T> clz,
Element headerElement,
Unmarshaller unmarshaller)
Decodes a MAP from a exposed version. |
|
protected
|
decodeMAP(Class<T> clz,
Element headerElement,
Unmarshaller unmarshaller)
Decodes a MAP from a SOAP header. |
|
protected
|
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. |
|
| Methods inherited from class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor |
|---|
getFaultCodePrefix, getRoles, prepareStackTrace |
| Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor |
|---|
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, isGET, isRequestor, setAfter, setBefore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map<String,Exchange> uncorrelatedExchanges
| Constructor Detail |
|---|
public MAPCodec()
| Method Detail |
|---|
public Map<String,Exchange> getUncorrelatedExchanges()
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 MAPs
SOAPFaultException - if decoded MAPs are invalid
public <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 use
JAXBException
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 use
JAXBException
protected <T> T decodeMAP(Class<T> clz,
Element headerElement,
Unmarshaller unmarshaller)
throws JAXBException
clz - the classheaderElement - the SOAP header elementmarshaller - the JAXB marshaller to use
JAXBExceptionprotected MAPCodec.HeaderFactory getHeaderFactory()
protected void setHeaderFactory(MAPCodec.HeaderFactory factory)
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||