com.sun.ws.rest.api.client
Class Filterable

java.lang.Object
  extended by com.sun.ws.rest.api.client.Filterable
Direct Known Subclasses:
Client, WebResource

public abstract class Filterable
extends java.lang.Object

An abstract class providing support for registering and managing a chain of ClientFilter instances.


Constructor Summary
protected Filterable(ClientHandler root)
           
 
Method Summary
 void addFilter(ClientFilter f)
          Add a filter to the filter chain.
protected  ClientHandler getHeadHandler()
          Get the head client handler of the filter chain.
 void removeAllFilters()
          Remove all filters from the filter chain.
 void removeFilter(ClientFilter f)
          Remove a filter from the chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filterable

protected Filterable(ClientHandler root)
Parameters:
root - the root handler to handle the request and return a response.
Method Detail

addFilter

public void addFilter(ClientFilter f)
Add a filter to the filter chain.

Parameters:
f - the filter to add.

removeFilter

public void removeFilter(ClientFilter f)
Remove a filter from the chain.

Parameters:
f - the filter to remove.

removeAllFilters

public void removeAllFilters()
Remove all filters from the filter chain.


getHeadHandler

protected ClientHandler getHeadHandler()
Get the head client handler of the filter chain.

Returns:
the head client handler of the filter chain.