Package com.sun.xml.ws.rx.mc.dev
Interface ProtocolMessageHandler
-
public interface ProtocolMessageHandler
Implementations of this interface that are registered withcom.sun.xml.ws.rx.mc.runtime.WsMcResponseHandler#processResponse(Packet)
are invoked to handle protocol response messages that don't correlate with any client request.- Author:
- Marek Potociar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<String>
getSuportedWsaActions()
Provides information about all WS-Addressing actions that this handler understands and can process.void
processProtocolMessage(Packet protocolMessage)
This method is invoked fromcom.sun.xml.ws.rx.mc.runtime.WsMcResponseHandler#processResponse(Packet)
in case it is not possible to resolve WS-ARelatesTo
header from the response message to an existing suspended fiber.
-
-
-
Method Detail
-
getSuportedWsaActions
@NotNull Collection<String> getSuportedWsaActions()
Provides information about all WS-Addressing actions that this handler understands and can process.- Returns:
- collection of all WS-Addressing actions that this handler understands and can process.
Must not return
null
.
-
processProtocolMessage
void processProtocolMessage(Packet protocolMessage)
This method is invoked from
com.sun.xml.ws.rx.mc.runtime.WsMcResponseHandler#processResponse(Packet)
in case it is not possible to resolve WS-ARelatesTo
header from the response message to an existing suspended fiber. In such case it is assumed that the response may contain some general WS-* protocol message and collection of registeredProtocolMessageHandler
s is consulted.In case the WS-Addressing
wsa:Action
header matches one of the supported WS-Addressing actions returned fromgetSuportedWsaActions()
method, theprocessProtocolMessage(com.sun.xml.ws.api.message.Packet)
is invoked onProtocolMessageHandler
instance to process the protocol message.- Parameters:
protocolMessage
- a protocol message to be handled
-
-