org.norther.tammi.spray.connector.chain
Class DispatchedRequest

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by org.norther.tammi.spray.filter.chain.ServletRequestWrapper
          extended by org.norther.tammi.spray.connector.chain.AbstractConnectorRequest
              extended by org.norther.tammi.spray.connector.chain.DispatchedRequest
All Implemented Interfaces:
EventListener, ServletRequest, Poolable, Recyclable, FilterChainListener

public class DispatchedRequest
extends AbstractConnectorRequest

A dispatched request providing about the same functionality as ConnectorRequest and hiding others to provide a fresh start for forwards and includes.

Version:
$Id: DispatchedRequest.java,v 1.9 2009/11/04 02:01:23 cvsimp Exp $
Author:
Ilkka Priha

Nested Class Summary
 
Nested classes/interfaces inherited from class org.norther.tammi.spray.connector.chain.AbstractConnectorRequest
AbstractConnectorRequest.ConnectorRequestExtension
 
Field Summary
 
Fields inherited from class org.norther.tammi.spray.connector.chain.AbstractConnectorRequest
PROTOCOL
 
Constructor Summary
DispatchedRequest(Connection con, String ctx, String path, ServletRequest req)
          Constructs a new request for the encoded path.
 
Method Summary
 void completed(FilterChainEvent event)
          Notifies the object that a filter chain has completed.
 void dispose()
          Disposes the object after use.
 void filtered(FilterChainEvent event)
          Notifies the object that it has been activated within a filter chain.
 Object getAttribute(String name)
           
protected  InputStream getRawInputStream()
          Gets the raw input stream.
 void recycle(Connection con, String ctx, String path, ServletRequest req)
          Recycles a request for the encoded path.
 
Methods inherited from class org.norther.tammi.spray.connector.chain.AbstractConnectorRequest
getAttributeNames, getCharacterEncoding, getConnection, getContentLength, getContentType, getFilterChain, getInputStream, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRequestDispatcher, getScheme, recycle, recycle, removeAttribute, setAttribute, setCharacterEncoding
 
Methods inherited from class org.norther.tammi.spray.filter.chain.ServletRequestWrapper
disposed, getExtension, isDisposed, recycle, recycle, recycled
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getLocalAddr, getLocalName, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getServerName, getServerPort, isSecure, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatchedRequest

public DispatchedRequest(Connection con,
                         String ctx,
                         String path,
                         ServletRequest req)
Constructs a new request for the encoded path.

Parameters:
con - the connection.
ctx - the context.
path - the dispatch path.
req - the request to dispatch.
Method Detail

recycle

public void recycle(Connection con,
                    String ctx,
                    String path,
                    ServletRequest req)
Recycles a request for the encoded path.

Parameters:
con - the connection.
ctx - the context.
path - the dispatch path.
req - the request to dispatch.

dispose

public void dispose()
Description copied from interface: Recyclable
Disposes the object after use. The method is called when the object is returned to its pool. The dispose method must call its super.

Specified by:
dispose in interface Recyclable
Overrides:
dispose in class AbstractConnectorRequest

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface ServletRequest
Overrides:
getAttribute in class AbstractConnectorRequest

filtered

public void filtered(FilterChainEvent event)
Description copied from interface: FilterChainListener
Notifies the object that it has been activated within a filter chain.

Specified by:
filtered in interface FilterChainListener
Overrides:
filtered in class ServletRequestWrapper
Parameters:
event - the filter chain event.

completed

public void completed(FilterChainEvent event)
Description copied from interface: FilterChainListener
Notifies the object that a filter chain has completed.

Specified by:
completed in interface FilterChainListener
Overrides:
completed in class AbstractConnectorRequest
Parameters:
event - the filter chain event.

getRawInputStream

protected InputStream getRawInputStream()
Description copied from class: AbstractConnectorRequest
Gets the raw input stream.

Specified by:
getRawInputStream in class AbstractConnectorRequest
Returns:
the raw input stream or null.


Copyright © 2004 The Norther Organization. All rights reserved.