|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.ws.rm.EncoderDecoder
public abstract class EncoderDecoder
Base class for converting WS-ReliableMessaging structures to and from XML. Subclasses provide version-specific encoding and decoding.
Constructor Summary | |
---|---|
EncoderDecoder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EncoderDecoder()
Method Detail |
---|
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 name
null
if none)
JAXBException
protected void addNamespaceDecl(Element element)
element
- public Element buildHeaderFault(SequenceFault sf, QName qname) throws JAXBException
sf
- qname
- constructed element name
JAXBException
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 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |