Package org.apache.cxf.ws.rm
Class EncoderDecoder11Impl
- java.lang.Object
-
- org.apache.cxf.ws.rm.EncoderDecoder
-
- org.apache.cxf.ws.rm.EncoderDecoder11Impl
-
public final class EncoderDecoder11Impl extends EncoderDecoder
WS-ReliableMessaging 1.1/1.2 encoding and decoding. This just works with the standard internal form of the WS-RM data structures.
-
-
Field Summary
Fields Modifier and Type Field Description static EncoderDecoder11Impl
INSTANCE
-
Fields inherited from class org.apache.cxf.ws.rm.EncoderDecoder
databinding
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
buildHeaderFaultObject(SequenceFault sf)
Build a header fault, using the correct protocol variation.protected void
buildHeaders(SequenceType seq, Collection<SequenceAcknowledgement> acks, Collection<AckRequestedType> reqs, boolean last, List<org.apache.cxf.headers.Header> headers)
Build all required headers, using the correct protocol variation.CreateSequenceType
convertReceivedCreateSequence(Object create)
Convert a received CreateSequence message to internal form.CreateSequenceResponseType
convertReceivedCreateSequenceResponse(Object create)
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
buildHeaderFault, buildHeaders, getDataBinding
-
-
-
-
Field Detail
-
INSTANCE
public static final EncoderDecoder11Impl 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 classEncoderDecoder
- 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 classEncoderDecoder
- 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 classEncoderDecoder
- Returns:
-
getCreateSequenceType
public Class<?> getCreateSequenceType()
Description copied from class:EncoderDecoder
Get the class used for the CreateSequenceType.- Specified by:
getCreateSequenceType
in classEncoderDecoder
- Returns:
- class
-
getCreateSequenceResponseType
public Class<?> getCreateSequenceResponseType()
Description copied from class:EncoderDecoder
Get the class used for the CreateSequenceResponseType.- Specified by:
getCreateSequenceResponseType
in classEncoderDecoder
- Returns:
- class
-
getTerminateSequenceType
public Class<?> getTerminateSequenceType()
Description copied from class:EncoderDecoder
Get the class used for the TerminateSequenceType.- Specified by:
getTerminateSequenceType
in classEncoderDecoder
- Returns:
- class
-
getTerminateSequenceResponseType
public Class<?> getTerminateSequenceResponseType()
Description copied from class:EncoderDecoder
Get the class used for the TerminateSequenceResponseType.- Specified by:
getTerminateSequenceResponseType
in classEncoderDecoder
- Returns:
- class
-
getContext
protected JAXBContext getContext() throws JAXBException
Description copied from class:EncoderDecoder
Get context for JAXB marshalling/unmarshalling.- Specified by:
getContext
in classEncoderDecoder
- Returns:
- context
- Throws:
JAXBException
-
buildHeaders
protected void buildHeaders(SequenceType seq, Collection<SequenceAcknowledgement> acks, Collection<AckRequestedType> reqs, boolean last, List<org.apache.cxf.headers.Header> headers) throws JAXBException
Description copied from class:EncoderDecoder
Build all required headers, using the correct protocol variation.- Specified by:
buildHeaders
in classEncoderDecoder
- Throws:
JAXBException
-
buildHeaderFaultObject
protected Object buildHeaderFaultObject(SequenceFault sf)
Description copied from class:EncoderDecoder
Build a header fault, using the correct protocol variation.- Specified by:
buildHeaderFaultObject
in classEncoderDecoder
- Returns:
- the object marshallable with the JAXContext
-
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 classEncoderDecoder
- 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 classEncoderDecoder
- 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 classEncoderDecoder
- 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 classEncoderDecoder
- 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 classEncoderDecoder
- 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 classEncoderDecoder
- 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 classEncoderDecoder
- 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 classEncoderDecoder
- 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 classEncoderDecoder
- 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 classEncoderDecoder
- Returns:
- converted
-
convertReceivedCreateSequenceResponse
public CreateSequenceResponseType convertReceivedCreateSequenceResponse(Object create)
Description copied from class:EncoderDecoder
Convert a received CreateSequenceResponse message to internal form.- Specified by:
convertReceivedCreateSequenceResponse
in classEncoderDecoder
- 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 classEncoderDecoder
- Returns:
- converted
-
-