com.sun.xml.ws.rx.testing.filters
Class RmEnabledCheckFilter

java.lang.Object
  extended by com.sun.xml.ws.rx.testing.PacketFilter
      extended by com.sun.xml.ws.rx.testing.filters.RmEnabledCheckFilter

public final class RmEnabledCheckFilter
extends PacketFilter

Filter instance of this class checks if the RM is enabled on the current WS port.

If RM is not enabled, invocation of this filter results in a IllegalStateException being thrown.

Author:
Marek Potociar

Field Summary
 
Fields inherited from class com.sun.xml.ws.rx.testing.PacketFilter
UNSPECIFIED
 
Constructor Summary
RmEnabledCheckFilter()
           
 
Method Summary
 Packet filterClientRequest(Packet request)
          Method is called during the client-side request packet processing, which means that it is called BEFORE the request is sent to the service.
 Packet filterServerResponse(Packet response)
          Method is called during the server-side response packet processing, which means that it is called BEFORE the response is sent to the client.
 
Methods inherited from class com.sun.xml.ws.rx.testing.PacketFilter
getMessageId, getRmVersion, getSequenceId, isRmProtocolMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmEnabledCheckFilter

public RmEnabledCheckFilter()
Method Detail

filterClientRequest

public Packet filterClientRequest(Packet request)
                           throws Exception
Description copied from class: PacketFilter
Method is called during the client-side request packet processing, which means that it is called BEFORE the request is sent to the service.

Specified by:
filterClientRequest in class PacketFilter
Parameters:
request - original request packet to be filtered
Returns:
filtered packet
Throws:
Exception - any exception that may occur during processing.

filterServerResponse

public Packet filterServerResponse(Packet response)
                            throws Exception
Description copied from class: PacketFilter
Method is called during the server-side response packet processing, which means that it is called BEFORE the response is sent to the client.

Specified by:
filterServerResponse in class PacketFilter
Parameters:
response - original response packet to be filtered
Returns:
filtered packet
Throws:
Exception - any exception that may occur during processing.


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.