Class PacketFilter

java.lang.Object
com.sun.xml.ws.rx.testing.PacketFilter
Direct Known Subclasses:
RmEnabledCheckFilter

public abstract class PacketFilter extends Object
Author:
Marek Potociar (marek.potociar at sun.com)
  • Field Details

  • Constructor Details

    • PacketFilter

      protected PacketFilter()
  • Method Details

    • filterClientRequest

      public abstract Packet filterClientRequest(Packet request) throws Exception
      Method is called during the client-side request packet processing, which means that it is called BEFORE the request is sent to the service.
      Parameters:
      request - original request packet to be filtered
      Returns:
      filtered packet
      Throws:
      Exception - any exception that may occur during processing.
    • filterServerResponse

      public abstract Packet filterServerResponse(Packet response) throws Exception
      Method is called during the server-side response packet processing, which means that it is called BEFORE the response is sent to the client.
      Parameters:
      response - original response packet to be filtered
      Returns:
      filtered packet
      Throws:
      Exception - any exception that may occur during processing.
    • getSequenceId

      protected final String getSequenceId(Packet packet)
      Retrieves RM sequence identifier form the message stored in the packet.
      Parameters:
      packet - packet to be checked for the RM sequence identifier
      Returns:
      RM sequence identifier. May return null if there is no RM sequence identifier associated with this packet.
    • getMessageId

      protected final long getMessageId(Packet packet)
      Retrieves RM sequence message identifier form the message stored in the packet.
      Parameters:
      packet - packet to be checked for the RM message identifier
      Returns:
      RM sequence message identifier. May return UNSPECIFIED if there is no RM message identifier associated with this packet.
    • getRmVersion

      protected final RmRuntimeVersion getRmVersion()
      Provides information on RM version configured on the current web service port. May return null if RM is not enabled on the port.
      Returns:
      RM version configured on the current WS port or null if RM is not enabled.
    • isRmProtocolMessage

      protected final boolean isRmProtocolMessage(Packet packet)