public abstract class EncoderDecoder extends Object
Constructor and Description |
---|
EncoderDecoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
addNamespaceDecl(Element element)
Add WS-RM namespace declaration to element.
|
protected abstract void |
buildHeaderFault(SequenceFault sf,
Element header,
Marshaller marshaller)
Build a header fault, using the correct protocol variation.
|
Element |
buildHeaderFault(SequenceFault sf,
QName qname)
Builds an element containing a WS-RM Fault.
|
Element |
buildHeaders(RMProperties rmps,
QName qname)
Builds an element containing WS-RM headers.
|
protected abstract 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.
|
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.
|
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 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()
public Element buildHeaders(RMProperties rmps, QName qname) throws JAXBException
rmps
- qname
- constructed element namenull
if none)JAXBException
protected void addNamespaceDecl(Element element)
element
- public Element buildHeaderFault(SequenceFault sf, QName qname) throws JAXBException
sf
- qname
- constructed element nameJAXBException
protected abstract void buildHeaders(SequenceType seq, Collection<SequenceAcknowledgement> acks, Collection<AckRequestedType> reqs, boolean last, Element header, Marshaller marshaller) throws JAXBException
seq
- acks
- reqs
- last
- header
- marshaller
- JAXBException
protected abstract void buildHeaderFault(SequenceFault sf, Element header, Marshaller marshaller) throws JAXBException
sf
- header
- marshaller
- JAXBException
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