Package org.apache.cxf.ws.rm
Class EncoderDecoder11Impl
java.lang.Object
org.apache.cxf.ws.rm.EncoderDecoder
org.apache.cxf.ws.rm.EncoderDecoder11Impl
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
FieldsFields inherited from class org.apache.cxf.ws.rm.EncoderDecoder
databinding -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectBuild a header fault, using the correct protocol variation.protected voidbuildHeaders(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.convertReceivedCreateSequence(Object create) Convert a received CreateSequence message to internal form.Convert a received CreateSequenceResponse message to internal form.Convert a received TerminateSequence message to internal form.Convert a CreateSequenceResponse message to the correct format for transmission.convertToSend(CreateSequenceType create) Convert a CreateSequence message to the correct format for transmission.Convert a TerminateSequence message to the correct format for transmission.Unmarshals a AckRequestedType, converting it if necessary to the internal form.Unmarshals a SequenceAcknowledgement, converting it if necessary to the internal form.decodeSequenceType(Element elem) Unmarshals a SequenceType, converting it if necessary to the internal form.Generates a CloseSequenceType if a SequenceType represents a last message state.Marshals an Identifier to the appropriate external form.Marshals a SequenceAcknowledgement to the appropriate external form.Get the WS-ReliableMessaging constants used by this encoder/decoder.protected jakarta.xml.bind.JAXBContextGet context for JAXB marshalling/unmarshalling.Class<?>Get the class used for the CreateSequenceResponseType.Class<?>Get the class used for the CreateSequenceType.Class<?>Get the class used for the TerminateSequenceResponseType.Class<?>Get the class used for the TerminateSequenceType.Get the WS-Addressing namespace used by this encoder/decoder.Get the WS-ReliableMessaging namespace used by this encoder/decoder.Methods inherited from class org.apache.cxf.ws.rm.EncoderDecoder
buildHeaderFault, buildHeaders, getDataBinding
-
Field Details
-
INSTANCE
-
-
Method Details
-
getWSRMNamespace
Description copied from class:EncoderDecoderGet the WS-ReliableMessaging namespace used by this encoder/decoder.- Specified by:
getWSRMNamespacein classEncoderDecoder- Returns:
- URI
-
getWSANamespace
Description copied from class:EncoderDecoderGet the WS-Addressing namespace used by this encoder/decoder.- Specified by:
getWSANamespacein classEncoderDecoder- Returns:
- URI
-
getConstants
Description copied from class:EncoderDecoderGet the WS-ReliableMessaging constants used by this encoder/decoder.- Specified by:
getConstantsin classEncoderDecoder- Returns:
-
getCreateSequenceType
Description copied from class:EncoderDecoderGet the class used for the CreateSequenceType.- Specified by:
getCreateSequenceTypein classEncoderDecoder- Returns:
- class
-
getCreateSequenceResponseType
Description copied from class:EncoderDecoderGet the class used for the CreateSequenceResponseType.- Specified by:
getCreateSequenceResponseTypein classEncoderDecoder- Returns:
- class
-
getTerminateSequenceType
Description copied from class:EncoderDecoderGet the class used for the TerminateSequenceType.- Specified by:
getTerminateSequenceTypein classEncoderDecoder- Returns:
- class
-
getTerminateSequenceResponseType
Description copied from class:EncoderDecoderGet the class used for the TerminateSequenceResponseType.- Specified by:
getTerminateSequenceResponseTypein classEncoderDecoder- Returns:
- class
-
getContext
protected jakarta.xml.bind.JAXBContext getContext() throws jakarta.xml.bind.JAXBExceptionDescription copied from class:EncoderDecoderGet context for JAXB marshalling/unmarshalling.- Specified by:
getContextin classEncoderDecoder- Returns:
- context
- Throws:
jakarta.xml.bind.JAXBException
-
buildHeaders
protected void buildHeaders(SequenceType seq, Collection<SequenceAcknowledgement> acks, Collection<AckRequestedType> reqs, boolean last, List<org.apache.cxf.headers.Header> headers) throws jakarta.xml.bind.JAXBException Description copied from class:EncoderDecoderBuild all required headers, using the correct protocol variation.- Specified by:
buildHeadersin classEncoderDecoder- Throws:
jakarta.xml.bind.JAXBException
-
buildHeaderFaultObject
Description copied from class:EncoderDecoderBuild a header fault, using the correct protocol variation.- Specified by:
buildHeaderFaultObjectin classEncoderDecoder- Returns:
- the object marshallable with the JAXContext
-
encodeSequenceAcknowledgement
public Element encodeSequenceAcknowledgement(SequenceAcknowledgement ack) throws jakarta.xml.bind.JAXBException Description copied from class:EncoderDecoderMarshals a SequenceAcknowledgement to the appropriate external form.- Specified by:
encodeSequenceAcknowledgementin classEncoderDecoder- Returns:
- element
- Throws:
jakarta.xml.bind.JAXBException
-
encodeIdentifier
Description copied from class:EncoderDecoderMarshals an Identifier to the appropriate external form.- Specified by:
encodeIdentifierin classEncoderDecoder- Returns:
- element
- Throws:
jakarta.xml.bind.JAXBException
-
decodeSequenceType
Description copied from class:EncoderDecoderUnmarshals a SequenceType, converting it if necessary to the internal form.- Specified by:
decodeSequenceTypein classEncoderDecoder- Returns:
- Throws:
jakarta.xml.bind.JAXBException
-
decodeSequenceTypeCloseSequence
public CloseSequenceType decodeSequenceTypeCloseSequence(Element elem) throws jakarta.xml.bind.JAXBException Description copied from class:EncoderDecoderGenerates a CloseSequenceType if a SequenceType represents a last message state.- Specified by:
decodeSequenceTypeCloseSequencein classEncoderDecoder- Returns:
- CloseSequenceType if last message state, else
null - Throws:
jakarta.xml.bind.JAXBException
-
decodeSequenceAcknowledgement
public SequenceAcknowledgement decodeSequenceAcknowledgement(Element elem) throws jakarta.xml.bind.JAXBException Description copied from class:EncoderDecoderUnmarshals a SequenceAcknowledgement, converting it if necessary to the internal form.- Specified by:
decodeSequenceAcknowledgementin classEncoderDecoder- Returns:
- Throws:
jakarta.xml.bind.JAXBException
-
decodeAckRequestedType
Description copied from class:EncoderDecoderUnmarshals a AckRequestedType, converting it if necessary to the internal form.- Specified by:
decodeAckRequestedTypein classEncoderDecoder- Returns:
- Throws:
jakarta.xml.bind.JAXBException
-
convertToSend
Description copied from class:EncoderDecoderConvert a CreateSequence message to the correct format for transmission.- Specified by:
convertToSendin classEncoderDecoder- Returns:
- converted
-
convertToSend
Description copied from class:EncoderDecoderConvert a CreateSequenceResponse message to the correct format for transmission.- Specified by:
convertToSendin classEncoderDecoder- Returns:
- converted
-
convertToSend
Description copied from class:EncoderDecoderConvert a TerminateSequence message to the correct format for transmission.- Specified by:
convertToSendin classEncoderDecoder- Returns:
- converted
-
convertReceivedCreateSequence
Description copied from class:EncoderDecoderConvert a received CreateSequence message to internal form.- Specified by:
convertReceivedCreateSequencein classEncoderDecoder- Returns:
- converted
-
convertReceivedCreateSequenceResponse
Description copied from class:EncoderDecoderConvert a received CreateSequenceResponse message to internal form.- Specified by:
convertReceivedCreateSequenceResponsein classEncoderDecoder- Returns:
- converted
-
convertReceivedTerminateSequence
Description copied from class:EncoderDecoderConvert a received TerminateSequence message to internal form.- Specified by:
convertReceivedTerminateSequencein classEncoderDecoder- Returns:
- converted
-