public abstract class EncoderDecoder extends Object
Modifier and Type | Field and Description |
---|---|
protected DataBinding |
databinding |
Constructor and Description |
---|
EncoderDecoder() |
Modifier and Type | Method and Description |
---|---|
Header |
buildHeaderFault(SequenceFault sf)
Builds an element containing a WS-RM Fault.
|
protected abstract Object |
buildHeaderFaultObject(SequenceFault sf)
Build a header fault, using the correct protocol variation.
|
void |
buildHeaders(RMProperties rmps,
List<Header> headers)
Builds an element containing WS-RM headers.
|
protected abstract void |
buildHeaders(SequenceType seq,
Collection<SequenceAcknowledgement> acks,
Collection<AckRequestedType> reqs,
boolean last,
List<Header> headers)
Build all required headers, using the correct protocol variation.
|
abstract CreateSequenceType |
convertReceivedCreateSequence(Object create)
Convert a received CreateSequence message to internal form.
|
abstract CreateSequenceResponseType |
convertReceivedCreateSequenceResponse(Object create)
Convert a received CreateSequenceResponse message to internal form.
|
abstract TerminateSequenceType |
convertReceivedTerminateSequence(Object term)
Convert a received TerminateSequence message to internal form.
|
abstract Object |
convertToSend(CreateSequenceResponseType create)
Convert a CreateSequenceResponse message to the correct format for transmission.
|
abstract Object |
convertToSend(CreateSequenceType create)
Convert a CreateSequence message to the correct format for transmission.
|
abstract Object |
convertToSend(TerminateSequenceType term)
Convert a TerminateSequence message to the correct format for transmission.
|
abstract AckRequestedType |
decodeAckRequestedType(Element elem)
Unmarshals a AckRequestedType, converting it if necessary to the internal form.
|
abstract SequenceAcknowledgement |
decodeSequenceAcknowledgement(Element elem)
Unmarshals a SequenceAcknowledgement, converting it if necessary to the internal form.
|
abstract SequenceType |
decodeSequenceType(Element elem)
Unmarshals a SequenceType, converting it if necessary to the internal form.
|
abstract CloseSequenceType |
decodeSequenceTypeCloseSequence(Element elem)
Generates a CloseSequenceType if a SequenceType represents a last message state.
|
abstract Element |
encodeIdentifier(Identifier id)
Marshals an Identifier to the appropriate external form.
|
abstract Element |
encodeSequenceAcknowledgement(SequenceAcknowledgement ack)
Marshals a SequenceAcknowledgement to the appropriate external form.
|
abstract RMConstants |
getConstants()
Get the WS-ReliableMessaging constants used by this encoder/decoder.
|
protected abstract JAXBContext |
getContext()
Get context for JAXB marshalling/unmarshalling.
|
abstract Class<?> |
getCreateSequenceResponseType()
Get the class used for the CreateSequenceResponseType.
|
abstract Class<?> |
getCreateSequenceType()
Get the class used for the CreateSequenceType.
|
protected DataBinding |
getDataBinding()
Get the databinding used for the header objects
|
abstract Class<?> |
getTerminateSequenceResponseType()
Get the class used for the TerminateSequenceResponseType.
|
abstract Class<?> |
getTerminateSequenceType()
Get the class used for the TerminateSequenceType.
|
abstract String |
getWSANamespace()
Get the WS-Addressing namespace used by this encoder/decoder.
|
abstract String |
getWSRMNamespace()
Get the WS-ReliableMessaging namespace used by this encoder/decoder.
|
protected volatile DataBinding databinding
protected abstract JAXBContext getContext() throws JAXBException
JAXBException
public abstract String getWSRMNamespace()
public abstract String getWSANamespace()
public abstract RMConstants getConstants()
public abstract Class<?> getCreateSequenceType()
public abstract Class<?> getCreateSequenceResponseType()
public abstract Class<?> getTerminateSequenceType()
public abstract Class<?> getTerminateSequenceResponseType()
protected DataBinding getDataBinding() throws JAXBException
JAXBException
public void buildHeaders(RMProperties rmps, List<Header> headers) throws JAXBException
rmps
- headers
- the list of headersJAXBException
public Header buildHeaderFault(SequenceFault sf) throws JAXBException
sf
- JAXBException
protected abstract void buildHeaders(SequenceType seq, Collection<SequenceAcknowledgement> acks, Collection<AckRequestedType> reqs, boolean last, List<Header> headers) throws JAXBException
seq
- acks
- reqs
- last
- headers
- JAXBException
protected abstract Object buildHeaderFaultObject(SequenceFault sf)
sf
- public abstract Element encodeSequenceAcknowledgement(SequenceAcknowledgement ack) throws JAXBException
ack
- JAXBException
public abstract Element encodeIdentifier(Identifier id) throws JAXBException
id
- JAXBException
public abstract SequenceType decodeSequenceType(Element elem) throws JAXBException
elem
- JAXBException
public abstract CloseSequenceType decodeSequenceTypeCloseSequence(Element elem) throws JAXBException
elem
- null
JAXBException
public abstract SequenceAcknowledgement decodeSequenceAcknowledgement(Element elem) throws JAXBException
elem
- JAXBException
public abstract AckRequestedType decodeAckRequestedType(Element elem) throws JAXBException
elem
- JAXBException
public abstract Object convertToSend(CreateSequenceType create)
create
- public abstract Object convertToSend(CreateSequenceResponseType create)
create
- public abstract Object convertToSend(TerminateSequenceType term)
term
- public abstract TerminateSequenceType convertReceivedTerminateSequence(Object term)
term
- public abstract CreateSequenceType convertReceivedCreateSequence(Object create)
create
- public abstract CreateSequenceResponseType convertReceivedCreateSequenceResponse(Object create)
create
- Apache CXF