org.apache.cxf.ws.rm.soap
Class RMSoapInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
org.apache.cxf.ws.rm.soap.RMSoapInterceptor
- All Implemented Interfaces:
- org.apache.cxf.binding.soap.interceptor.SoapInterceptor, org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
public class RMSoapInterceptor
- extends org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
Protocol Handler responsible for {en|de}coding the RM
Properties for {outgo|incom}ing messages.
|
Field Summary |
protected static javax.xml.bind.JAXBContext |
jaxbContext
|
|
Method Summary |
static
|
decodeProperty(java.lang.Class<T> clz,
org.w3c.dom.Element headerElement,
javax.xml.bind.Unmarshaller unmarshaller)
Decodes an RM property from a SOAP header. |
static void |
encode(org.apache.cxf.binding.soap.SoapMessage message,
RMProperties rmps)
Encode the current RM properties in protocol-specific headers. |
java.util.Set<java.lang.String> |
getAfter()
|
java.util.Set<java.lang.String> |
getBefore()
|
java.lang.String |
getId()
|
java.lang.String |
getPhase()
|
java.util.Set<javax.xml.namespace.QName> |
getUnderstoodHeaders()
|
void |
handleFault(org.apache.cxf.binding.soap.SoapMessage message)
|
void |
handleMessage(org.apache.cxf.binding.soap.SoapMessage message)
|
RMProperties |
unmarshalRMProperties(org.apache.cxf.binding.soap.SoapMessage message)
Decode the RM properties 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, addBefore, isGET, setAfter, setBefore, setId, setPhase |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jaxbContext
protected static javax.xml.bind.JAXBContext jaxbContext
RMSoapInterceptor
public RMSoapInterceptor()
- Constructor.
getBefore
public java.util.Set<java.lang.String> getBefore()
- Specified by:
getBefore in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>- Overrides:
getBefore in class org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
getAfter
public java.util.Set<java.lang.String> getAfter()
- Specified by:
getAfter in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>- Overrides:
getAfter in class org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
getId
public java.lang.String getId()
- Specified by:
getId in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>- Overrides:
getId in class org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
getPhase
public java.lang.String getPhase()
- Specified by:
getPhase in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>- Overrides:
getPhase in class org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
getUnderstoodHeaders
public java.util.Set<javax.xml.namespace.QName> getUnderstoodHeaders()
- Specified by:
getUnderstoodHeaders in interface org.apache.cxf.binding.soap.interceptor.SoapInterceptor- Overrides:
getUnderstoodHeaders in class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
- Returns:
- the set of SOAP headers understood by this handler
handleFault
public void handleFault(org.apache.cxf.binding.soap.SoapMessage message)
- Specified by:
handleFault in interface org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>- Overrides:
handleFault in class org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
handleMessage
public void handleMessage(org.apache.cxf.binding.soap.SoapMessage message)
throws org.apache.cxf.interceptor.Fault
- Throws:
org.apache.cxf.interceptor.Fault
encode
public static void encode(org.apache.cxf.binding.soap.SoapMessage message,
RMProperties rmps)
- Encode the current RM properties in protocol-specific headers.
- Parameters:
message - the SOAP message.rmps - the current RM properties.
unmarshalRMProperties
public RMProperties unmarshalRMProperties(org.apache.cxf.binding.soap.SoapMessage message)
- Decode the RM properties from protocol-specific headers.
- Parameters:
message - the SOAP message
- Returns:
- the RM properties
decodeProperty
public static <T> T decodeProperty(java.lang.Class<T> clz,
org.w3c.dom.Element headerElement,
javax.xml.bind.Unmarshaller unmarshaller)
throws javax.xml.bind.JAXBException
- Decodes an RM property from a SOAP header.
- Parameters:
clz - the classheaderElement - the SOAP header elementmarshaller - the JAXB marshaller to use
- Returns:
- the decoded EndpointReference
- Throws:
javax.xml.bind.JAXBException
Copyright © 2006 Apache Software Foundation. All Rights Reserved.