Apache CXF API

org.apache.cxf.ws.rm
Class EncoderDecoder10AImpl

java.lang.Object
  extended by org.apache.cxf.ws.rm.EncoderDecoder
      extended by org.apache.cxf.ws.rm.EncoderDecoder10AImpl

public final class EncoderDecoder10AImpl
extends EncoderDecoder

WS-ReliableMessaging 1.0 encoding and decoding. This converts between the standard WS-RM objects and the 1.0 representation using the WS-Addressing recommendation 200508 namespace.


Field Summary
static EncoderDecoder10AImpl INSTANCE
           
 
Method Summary
 void buildHeaderFault(SequenceFault sf, Element header, Marshaller marshaller)
          Build a header fault, using the correct protocol variation.
protected  void buildHeaders(SequenceType seq, Collection<SequenceAcknowledgement> acks, Collection<AckRequestedType> reqs, boolean last, Element header, Marshaller marshaller)
          Build all required headers, using the correct protocol variation.
 CreateSequenceType convertReceivedCreateSequence(Object create)
          Convert a received CreateSequence message to internal form.
 CreateSequenceResponseType convertReceivedCreateSequenceResponse(Object response)
          Convert a received CreateSequenceResponse message to internal form.
 TerminateSequenceType convertReceivedTerminateSequence(Object term)
          Convert a received TerminateSequence message to internal form.
 Object convertToSend(CreateSequenceResponseType create)
          Convert a CreateSequenceResponse message to the correct format for transmission.
 Object convertToSend(CreateSequenceType create)
          Convert a CreateSequence message to the correct format for transmission.
 Object convertToSend(TerminateSequenceType term)
          Convert a TerminateSequence message to the correct format for transmission.
 AckRequestedType decodeAckRequestedType(Element elem)
          Unmarshals a AckRequestedType, converting it if necessary to the internal form.
 SequenceAcknowledgement decodeSequenceAcknowledgement(Element elem)
          Unmarshals a SequenceAcknowledgement, converting it if necessary to the internal form.
 SequenceType decodeSequenceType(Element elem)
          Unmarshals a SequenceType, converting it if necessary to the internal form.
 CloseSequenceType decodeSequenceTypeCloseSequence(Element elem)
          Generates a CloseSequenceType if a SequenceType represents a last message state.
 Element encodeIdentifier(Identifier id)
          Marshals an Identifier to the appropriate external form.
 Element encodeSequenceAcknowledgement(SequenceAcknowledgement ack)
          Marshals a SequenceAcknowledgement to the appropriate external form.
 RMConstants getConstants()
          Get the WS-ReliableMessaging constants used by this encoder/decoder.
protected  JAXBContext getContext()
          Get context for JAXB marshalling/unmarshalling.
 Class<?> getCreateSequenceResponseType()
          Get the class used for the CreateSequenceResponseType.
 Class<?> getCreateSequenceType()
          Get the class used for the CreateSequenceType.
 Class<?> getTerminateSequenceResponseType()
          Get the class used for the TerminateSequenceResponseType.
 Class<?> getTerminateSequenceType()
          Get the class used for the TerminateSequenceType.
 String getWSANamespace()
          Get the WS-Addressing namespace used by this encoder/decoder.
 String getWSRMNamespace()
          Get the WS-ReliableMessaging namespace used by this encoder/decoder.
 
Methods inherited from class org.apache.cxf.ws.rm.EncoderDecoder
addNamespaceDecl, buildHeaderFault, buildHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final EncoderDecoder10AImpl INSTANCE
Method Detail

getWSRMNamespace

public String getWSRMNamespace()
Description copied from class: EncoderDecoder
Get the WS-ReliableMessaging namespace used by this encoder/decoder.

Specified by:
getWSRMNamespace in class EncoderDecoder
Returns:
URI

getWSANamespace

public String getWSANamespace()
Description copied from class: EncoderDecoder
Get the WS-Addressing namespace used by this encoder/decoder.

Specified by:
getWSANamespace in class EncoderDecoder
Returns:
URI

getConstants

public RMConstants getConstants()
Description copied from class: EncoderDecoder
Get the WS-ReliableMessaging constants used by this encoder/decoder.

Specified by:
getConstants in class EncoderDecoder
Returns:

getCreateSequenceType

public Class<?> getCreateSequenceType()
Description copied from class: EncoderDecoder
Get the class used for the CreateSequenceType.

Specified by:
getCreateSequenceType in class EncoderDecoder
Returns:
class

getCreateSequenceResponseType

public Class<?> getCreateSequenceResponseType()
Description copied from class: EncoderDecoder
Get the class used for the CreateSequenceResponseType.

Specified by:
getCreateSequenceResponseType in class EncoderDecoder
Returns:
class

getTerminateSequenceType

public Class<?> getTerminateSequenceType()
Description copied from class: EncoderDecoder
Get the class used for the TerminateSequenceType.

Specified by:
getTerminateSequenceType in class EncoderDecoder
Returns:
class

getTerminateSequenceResponseType

public Class<?> getTerminateSequenceResponseType()
Description copied from class: EncoderDecoder
Get the class used for the TerminateSequenceResponseType.

Specified by:
getTerminateSequenceResponseType in class EncoderDecoder
Returns:
class

getContext

protected JAXBContext getContext()
                          throws JAXBException
Description copied from class: EncoderDecoder
Get context for JAXB marshalling/unmarshalling.

Specified by:
getContext in class EncoderDecoder
Returns:
context
Throws:
JAXBException

buildHeaders

protected void buildHeaders(SequenceType seq,
                            Collection<SequenceAcknowledgement> acks,
                            Collection<AckRequestedType> reqs,
                            boolean last,
                            Element header,
                            Marshaller marshaller)
                     throws JAXBException
Description copied from class: EncoderDecoder
Build all required headers, using the correct protocol variation.

Specified by:
buildHeaders in class EncoderDecoder
Throws:
JAXBException

buildHeaderFault

public void buildHeaderFault(SequenceFault sf,
                             Element header,
                             Marshaller marshaller)
                      throws JAXBException
Description copied from class: EncoderDecoder
Build a header fault, using the correct protocol variation.

Specified by:
buildHeaderFault in class EncoderDecoder
Throws:
JAXBException

encodeSequenceAcknowledgement

public Element encodeSequenceAcknowledgement(SequenceAcknowledgement ack)
                                      throws JAXBException
Description copied from class: EncoderDecoder
Marshals a SequenceAcknowledgement to the appropriate external form.

Specified by:
encodeSequenceAcknowledgement in class EncoderDecoder
Returns:
element
Throws:
JAXBException

encodeIdentifier

public Element encodeIdentifier(Identifier id)
                         throws JAXBException
Description copied from class: EncoderDecoder
Marshals an Identifier to the appropriate external form.

Specified by:
encodeIdentifier in class EncoderDecoder
Returns:
element
Throws:
JAXBException

decodeSequenceType

public SequenceType decodeSequenceType(Element elem)
                                throws JAXBException
Description copied from class: EncoderDecoder
Unmarshals a SequenceType, converting it if necessary to the internal form.

Specified by:
decodeSequenceType in class EncoderDecoder
Returns:
Throws:
JAXBException

decodeSequenceTypeCloseSequence

public CloseSequenceType decodeSequenceTypeCloseSequence(Element elem)
                                                  throws JAXBException
Description copied from class: EncoderDecoder
Generates a CloseSequenceType if a SequenceType represents a last message state.

Specified by:
decodeSequenceTypeCloseSequence in class EncoderDecoder
Returns:
CloseSequenceType if last message state, else null
Throws:
JAXBException

decodeSequenceAcknowledgement

public SequenceAcknowledgement decodeSequenceAcknowledgement(Element elem)
                                                      throws JAXBException
Description copied from class: EncoderDecoder
Unmarshals a SequenceAcknowledgement, converting it if necessary to the internal form.

Specified by:
decodeSequenceAcknowledgement in class EncoderDecoder
Returns:
Throws:
JAXBException

decodeAckRequestedType

public AckRequestedType decodeAckRequestedType(Element elem)
                                        throws JAXBException
Description copied from class: EncoderDecoder
Unmarshals a AckRequestedType, converting it if necessary to the internal form.

Specified by:
decodeAckRequestedType in class EncoderDecoder
Returns:
Throws:
JAXBException

convertToSend

public Object convertToSend(CreateSequenceType create)
Description copied from class: EncoderDecoder
Convert a CreateSequence message to the correct format for transmission.

Specified by:
convertToSend in class EncoderDecoder
Returns:
converted

convertToSend

public Object convertToSend(TerminateSequenceType term)
Description copied from class: EncoderDecoder
Convert a TerminateSequence message to the correct format for transmission.

Specified by:
convertToSend in class EncoderDecoder
Returns:
converted

convertToSend

public Object convertToSend(CreateSequenceResponseType create)
Description copied from class: EncoderDecoder
Convert a CreateSequenceResponse message to the correct format for transmission.

Specified by:
convertToSend in class EncoderDecoder
Returns:
converted

convertReceivedCreateSequence

public CreateSequenceType convertReceivedCreateSequence(Object create)
Description copied from class: EncoderDecoder
Convert a received CreateSequence message to internal form.

Specified by:
convertReceivedCreateSequence in class EncoderDecoder
Returns:
converted

convertReceivedCreateSequenceResponse

public CreateSequenceResponseType convertReceivedCreateSequenceResponse(Object response)
Description copied from class: EncoderDecoder
Convert a received CreateSequenceResponse message to internal form.

Specified by:
convertReceivedCreateSequenceResponse in class EncoderDecoder
Returns:
converted

convertReceivedTerminateSequence

public TerminateSequenceType convertReceivedTerminateSequence(Object term)
Description copied from class: EncoderDecoder
Convert a received TerminateSequence message to internal form.

Specified by:
convertReceivedTerminateSequence in class EncoderDecoder
Returns:
converted

Apache CXF API

Apache CXF