org.norther.tammi.spray.filter.chain
Class AbstractExtension

java.lang.Object
  extended by org.norther.tammi.spray.filter.chain.AbstractExtension
All Implemented Interfaces:
Serializable, EventListener, Extension, ServletRequestBindingListener
Direct Known Subclasses:
AbstractConnectorRequest.ConnectorRequestExtension, AbstractProtocolRequest.ProtocolRequestExtension, HttpServletRequestDecorator.ConnectorRequestExtension, TerminalRequest.TerminalRequestExtension

public abstract class AbstractExtension
extends Object
implements Extension, ServletRequestBindingListener, Serializable

An abstact implementation of the Extension interface.

Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
AbstractExtension()
          Constructs a new entension.
 
Method Summary
protected  HttpFilterChain getFilterChain()
          Gets the filter chain.
protected  ServletRequest getFilteredRequest()
          Gets the filtered request.
protected  ServletResponse getFilteredResponse()
          Gets the filtered response.
 boolean isBound()
          Checks the bound status of the extension.
 void valueBound(ServletRequestBindingEvent event)
          Notifies the object that it is being bound to a request.
 void valueUnbound(ServletRequestBindingEvent event)
          Notifies the object that it is being unbound from a request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractExtension

public AbstractExtension()
Constructs a new entension.

Method Detail

valueBound

public void valueBound(ServletRequestBindingEvent event)
Description copied from interface: ServletRequestBindingListener
Notifies the object that it is being bound to a request.

Specified by:
valueBound in interface ServletRequestBindingListener
Parameters:
event - the binding event.

valueUnbound

public void valueUnbound(ServletRequestBindingEvent event)
Description copied from interface: ServletRequestBindingListener
Notifies the object that it is being unbound from a request.

Specified by:
valueUnbound in interface ServletRequestBindingListener
Parameters:
event - the binding event.

isBound

public boolean isBound()
Checks the bound status of the extension.

Returns:
true or false.

getFilterChain

protected HttpFilterChain getFilterChain()
Gets the filter chain.

Returns:
the filter chain.
Throws:
IllegalStateException - if not bound.

getFilteredRequest

protected ServletRequest getFilteredRequest()
Gets the filtered request.

Returns:
the request.
Throws:
IllegalStateException - if not bound.

getFilteredResponse

protected ServletResponse getFilteredResponse()
Gets the filtered response.

Returns:
the response.
Throws:
IllegalStateException - if not bound.


Copyright © 2004 The Norther Organization. All rights reserved.