Package org.apache.cxf.ws.rm
Class EncoderDecoder10Impl
- java.lang.Object
-
- org.apache.cxf.ws.rm.EncoderDecoder
-
- org.apache.cxf.ws.rm.EncoderDecoder10Impl
-
public final class EncoderDecoder10Impl 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 200408 namespace specified in the WS-RM 1.0 recommendation.
-
-
Field Summary
Fields Modifier and Type Field Description static EncoderDecoder10ImplINSTANCE-
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 ObjectbuildHeaderFaultObject(SequenceFault sf)Build a header fault, using the correct protocol variation.protected voidbuildHeaders(SequenceType seq, Collection<SequenceAcknowledgement> acks, Collection<AckRequestedType> reqs, boolean last, List<Header> headers)Build all required headers, using the correct protocol variation.CreateSequenceTypeconvertReceivedCreateSequence(Object create)Convert a received CreateSequence message to internal form.CreateSequenceResponseTypeconvertReceivedCreateSequenceResponse(Object response)Convert a received CreateSequenceResponse message to internal form.TerminateSequenceTypeconvertReceivedTerminateSequence(Object term)Convert a received TerminateSequence message to internal form.ObjectconvertToSend(CreateSequenceResponseType create)Convert a CreateSequenceResponse message to the correct format for transmission.ObjectconvertToSend(CreateSequenceType create)Convert a CreateSequence message to the correct format for transmission.ObjectconvertToSend(TerminateSequenceType term)Convert a TerminateSequence message to the correct format for transmission.AckRequestedTypedecodeAckRequestedType(Element elem)Unmarshals a AckRequestedType, converting it if necessary to the internal form.SequenceAcknowledgementdecodeSequenceAcknowledgement(Element elem)Unmarshals a SequenceAcknowledgement, converting it if necessary to the internal form.SequenceTypedecodeSequenceType(Element elem)Unmarshals a SequenceType, converting it if necessary to the internal form.CloseSequenceTypedecodeSequenceTypeCloseSequence(Element elem)Generates a CloseSequenceType if a SequenceType represents a last message state.ElementencodeIdentifier(Identifier id)Marshals an Identifier to the appropriate external form.ElementencodeSequenceAcknowledgement(SequenceAcknowledgement ack)Marshals a SequenceAcknowledgement to the appropriate external form.RMConstantsgetConstants()Get the WS-ReliableMessaging constants used by this encoder/decoder.protected javax.xml.bind.JAXBContextgetContext()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.StringgetWSANamespace()Get the WS-Addressing namespace used by this encoder/decoder.StringgetWSRMNamespace()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 EncoderDecoder10Impl INSTANCE
-
-
Method Detail
-
getWSRMNamespace
public String getWSRMNamespace()
Description copied from class:EncoderDecoderGet the WS-ReliableMessaging namespace used by this encoder/decoder.- Specified by:
getWSRMNamespacein classEncoderDecoder- Returns:
- URI
-
getWSANamespace
public String getWSANamespace()
Description copied from class:EncoderDecoderGet the WS-Addressing namespace used by this encoder/decoder.- Specified by:
getWSANamespacein classEncoderDecoder- Returns:
- URI
-
getConstants
public RMConstants getConstants()
Description copied from class:EncoderDecoderGet the WS-ReliableMessaging constants used by this encoder/decoder.- Specified by:
getConstantsin classEncoderDecoder- Returns:
-
getCreateSequenceType
public Class<?> getCreateSequenceType()
Description copied from class:EncoderDecoderGet the class used for the CreateSequenceType.- Specified by:
getCreateSequenceTypein classEncoderDecoder- Returns:
- class
-
getCreateSequenceResponseType
public Class<?> getCreateSequenceResponseType()
Description copied from class:EncoderDecoderGet the class used for the CreateSequenceResponseType.- Specified by:
getCreateSequenceResponseTypein classEncoderDecoder- Returns:
- class
-
getTerminateSequenceType
public Class<?> getTerminateSequenceType()
Description copied from class:EncoderDecoderGet the class used for the TerminateSequenceType.- Specified by:
getTerminateSequenceTypein classEncoderDecoder- Returns:
- class
-
getTerminateSequenceResponseType
public Class<?> getTerminateSequenceResponseType()
Description copied from class:EncoderDecoderGet the class used for the TerminateSequenceResponseType.- Specified by:
getTerminateSequenceResponseTypein classEncoderDecoder- Returns:
- class
-
getContext
protected javax.xml.bind.JAXBContext getContext() throws javax.xml.bind.JAXBExceptionDescription copied from class:EncoderDecoderGet context for JAXB marshalling/unmarshalling.- Specified by:
getContextin classEncoderDecoder- Returns:
- context
- Throws:
javax.xml.bind.JAXBException
-
buildHeaders
protected void buildHeaders(SequenceType seq, Collection<SequenceAcknowledgement> acks, Collection<AckRequestedType> reqs, boolean last, List<Header> headers) throws javax.xml.bind.JAXBException
Description copied from class:EncoderDecoderBuild all required headers, using the correct protocol variation.- Specified by:
buildHeadersin classEncoderDecoder- Throws:
javax.xml.bind.JAXBException
-
buildHeaderFaultObject
protected Object buildHeaderFaultObject(SequenceFault sf)
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 javax.xml.bind.JAXBException
Description copied from class:EncoderDecoderMarshals a SequenceAcknowledgement to the appropriate external form.- Specified by:
encodeSequenceAcknowledgementin classEncoderDecoder- Returns:
- element
- Throws:
javax.xml.bind.JAXBException
-
encodeIdentifier
public Element encodeIdentifier(Identifier id) throws javax.xml.bind.JAXBException
Description copied from class:EncoderDecoderMarshals an Identifier to the appropriate external form.- Specified by:
encodeIdentifierin classEncoderDecoder- Returns:
- element
- Throws:
javax.xml.bind.JAXBException
-
decodeSequenceType
public SequenceType decodeSequenceType(Element elem) throws javax.xml.bind.JAXBException
Description copied from class:EncoderDecoderUnmarshals a SequenceType, converting it if necessary to the internal form.- Specified by:
decodeSequenceTypein classEncoderDecoder- Returns:
- Throws:
javax.xml.bind.JAXBException
-
decodeSequenceTypeCloseSequence
public CloseSequenceType decodeSequenceTypeCloseSequence(Element elem) throws javax.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:
javax.xml.bind.JAXBException
-
decodeSequenceAcknowledgement
public SequenceAcknowledgement decodeSequenceAcknowledgement(Element elem) throws javax.xml.bind.JAXBException
Description copied from class:EncoderDecoderUnmarshals a SequenceAcknowledgement, converting it if necessary to the internal form.- Specified by:
decodeSequenceAcknowledgementin classEncoderDecoder- Returns:
- Throws:
javax.xml.bind.JAXBException
-
decodeAckRequestedType
public AckRequestedType decodeAckRequestedType(Element elem) throws javax.xml.bind.JAXBException
Description copied from class:EncoderDecoderUnmarshals a AckRequestedType, converting it if necessary to the internal form.- Specified by:
decodeAckRequestedTypein classEncoderDecoder- Returns:
- Throws:
javax.xml.bind.JAXBException
-
convertToSend
public Object convertToSend(CreateSequenceType create)
Description copied from class:EncoderDecoderConvert a CreateSequence message to the correct format for transmission.- Specified by:
convertToSendin classEncoderDecoder- Returns:
- converted
-
convertToSend
public Object convertToSend(CreateSequenceResponseType create)
Description copied from class:EncoderDecoderConvert a CreateSequenceResponse message to the correct format for transmission.- Specified by:
convertToSendin classEncoderDecoder- Returns:
- converted
-
convertToSend
public Object convertToSend(TerminateSequenceType term)
Description copied from class:EncoderDecoderConvert a TerminateSequence message to the correct format for transmission.- Specified by:
convertToSendin classEncoderDecoder- Returns:
- converted
-
convertReceivedCreateSequence
public CreateSequenceType convertReceivedCreateSequence(Object create)
Description copied from class:EncoderDecoderConvert a received CreateSequence message to internal form.- Specified by:
convertReceivedCreateSequencein classEncoderDecoder- Returns:
- converted
-
convertReceivedCreateSequenceResponse
public CreateSequenceResponseType convertReceivedCreateSequenceResponse(Object response)
Description copied from class:EncoderDecoderConvert a received CreateSequenceResponse message to internal form.- Specified by:
convertReceivedCreateSequenceResponsein classEncoderDecoder- Returns:
- converted
-
convertReceivedTerminateSequence
public TerminateSequenceType convertReceivedTerminateSequence(Object term)
Description copied from class:EncoderDecoderConvert a received TerminateSequence message to internal form.- Specified by:
convertReceivedTerminateSequencein classEncoderDecoder- Returns:
- converted
-
-