Module org.glassfish.metro.wsit.api
Package com.sun.xml.ws.rx.mc.dev
Interface ProtocolMessageHandler
public interface ProtocolMessageHandler
Implementations of this interface that are registered with
com.sun.xml.ws.rx.mc.runtime.WsMcResponseHandler#processResponse(Packet)
are invoked to handle protocol response messages that don't correlate with any
client request.-
Method Summary
Modifier and TypeMethodDescriptionProvides information about all WS-Addressing actions that this handler understands and can process.voidprocessProtocolMessage(com.sun.xml.ws.api.message.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-ARelatesToheader from the response message to an existing suspended fiber.
-
Method Details
-
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(com.sun.xml.ws.api.message.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-ARelatesToheader 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 registeredProtocolMessageHandlers is consulted.In case the WS-Addressing
wsa:Actionheader matches one of the supported WS-Addressing actions returned fromgetSuportedWsaActions()method, theprocessProtocolMessage(com.sun.xml.ws.api.message.Packet)is invoked onProtocolMessageHandlerinstance to process the protocol message.- Parameters:
protocolMessage- a protocol message to be handled
-