Package com.sun.xml.ws.rx.rm.runtime
Class WsrmProtocolHandler
- java.lang.Object
-
- com.sun.xml.ws.rx.rm.runtime.WsrmProtocolHandler
-
public abstract class WsrmProtocolHandler extends Object
- Author:
- Marek Potociar
-
-
Field Summary
Fields Modifier and Type Field Description protected AddressingVersion
addressingVersion
protected Communicator
communicator
protected RmRuntimeVersion
rmVersion
protected SOAPVersion
soapVersion
-
Constructor Summary
Constructors Modifier Constructor Description protected
WsrmProtocolHandler(RmRuntimeVersion rmVersion, RmConfiguration configuration, Communicator communicator)
-
Method Summary
-
-
-
Field Detail
-
rmVersion
protected final RmRuntimeVersion rmVersion
-
communicator
protected final Communicator communicator
-
addressingVersion
protected final AddressingVersion addressingVersion
-
soapVersion
protected final SOAPVersion soapVersion
-
-
Constructor Detail
-
WsrmProtocolHandler
protected WsrmProtocolHandler(@NotNull RmRuntimeVersion rmVersion, @NotNull RmConfiguration configuration, @NotNull Communicator communicator)
-
-
Method Detail
-
getInstance
public static WsrmProtocolHandler getInstance(RmConfiguration configuration, Communicator communicator, RuntimeContext rc)
-
appendSequenceHeader
public abstract void appendSequenceHeader(@NotNull Message jaxwsMessage, @NotNull ApplicationMessage message) throws RxRuntimeException
- Throws:
RxRuntimeException
-
appendAcknowledgementHeaders
public abstract void appendAcknowledgementHeaders(@NotNull Packet packet, @NotNull AcknowledgementData ackData) throws RxRuntimeException
- Throws:
RxRuntimeException
-
getAcknowledgementData
public abstract AcknowledgementData getAcknowledgementData(Message jaxwsMessage) throws RxRuntimeException
- Throws:
RxRuntimeException
-
loadAcknowledgementData
public abstract void loadAcknowledgementData(@NotNull ApplicationMessage message, @NotNull Message jaxwsMessage) throws RxRuntimeException
- Throws:
RxRuntimeException
-
loadSequenceHeaderData
public abstract void loadSequenceHeaderData(@NotNull ApplicationMessage message, @NotNull Message jaxwsMessage) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toCreateSequenceData
public abstract CreateSequenceData toCreateSequenceData(@NotNull Packet packet) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toPacket
public abstract Packet toPacket(@NotNull CreateSequenceData data, @Nullable Packet requestPacket) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toCreateSequenceResponseData
public abstract CreateSequenceResponseData toCreateSequenceResponseData(@NotNull Packet packet) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toPacket
public abstract Packet toPacket(@NotNull CreateSequenceResponseData data, @NotNull Packet requestPacket, boolean clientSideResponse) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toCloseSequenceData
public abstract CloseSequenceData toCloseSequenceData(@NotNull Packet packet) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toPacket
public abstract Packet toPacket(@NotNull CloseSequenceData data, @Nullable Packet requestPacket) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toCloseSequenceResponseData
public abstract CloseSequenceResponseData toCloseSequenceResponseData(@NotNull Packet packet) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toPacket
public abstract Packet toPacket(@NotNull CloseSequenceResponseData data, @NotNull Packet requestPacket, boolean clientSideResponse) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toTerminateSequenceData
public abstract TerminateSequenceData toTerminateSequenceData(@NotNull Packet packet) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toPacket
public abstract Packet toPacket(@NotNull TerminateSequenceData data, @Nullable Packet requestPacket) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toTerminateSequenceResponseData
public abstract TerminateSequenceResponseData toTerminateSequenceResponseData(@NotNull Packet packet) throws RxRuntimeException
- Throws:
RxRuntimeException
-
toPacket
public abstract Packet toPacket(@NotNull TerminateSequenceResponseData data, @NotNull Packet requestPacket, boolean clientSideResponse) throws RxRuntimeException
- Throws:
RxRuntimeException
-
createSequenceFaultElementHeader
public abstract Header createSequenceFaultElementHeader(QName subcode, jakarta.xml.soap.Detail detail)
-
createEmptyAcknowledgementResponse
public abstract Packet createEmptyAcknowledgementResponse(AcknowledgementData ackData, Packet requestPacket) throws RxRuntimeException
- Throws:
RxRuntimeException
-
containsProtocolMessage
public final boolean containsProtocolMessage(@NotNull Packet packet)
-
containsProtocolRequest
public final boolean containsProtocolRequest(@NotNull Packet packet)
-
containsProtocolResponse
public final boolean containsProtocolResponse(@NotNull Packet packet)
-
readHeaderAsUnderstood
protected final <T> T readHeaderAsUnderstood(@NotNull String nsUri, @NotNull String name, @NotNull Message message) throws RxRuntimeException
- Throws:
RxRuntimeException
-
getJaxbContext
protected final org.glassfish.jaxb.runtime.api.JAXBRIContext getJaxbContext()
-
getJaxbUnmarshaller
protected final jakarta.xml.bind.Unmarshaller getJaxbUnmarshaller() throws RxRuntimeException
- Throws:
RxRuntimeException
-
unmarshallMessage
protected final <T> T unmarshallMessage(@NotNull Message message) throws RxRuntimeException
Unmarshalls underlying JAXWSMessage
using JAXB context of a configured RM version- Returns:
- message content unmarshalled JAXB bean
- Throws:
com.sun.xml.ws.rm.RxException
- in case the message unmarshalling failedRxRuntimeException
-
-