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

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.ConnectorRequest
All Implemented Interfaces:
EventListener, ServletRequest, Poolable, Recyclable, FilterChainListener

public class ConnectorRequest
extends AbstractConnectorRequest

A default implementation of the connector request implementing raw stream support.

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
ConnectorRequest(Connection c)
          Constructs a new request.
ConnectorRequest(Connection c, InputStream in)
          Constructs a new request with a stream.
 
Method Summary
 void dispose()
          Disposes the object after use.
 void disposed()
          A call back indicating that this instance is not needed any more and can be disposed.
 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 c, InputStream in)
          Recycles a request with a stream.
 
Methods inherited from class org.norther.tammi.spray.connector.chain.AbstractConnectorRequest
completed, getAttributeNames, getCharacterEncoding, getConnection, getContentLength, getContentType, getFilteredRequest, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, recycle, recycle, removeAttribute, setAttribute, setCharacterEncoding
 
Methods inherited from class org.norther.tammi.spray.filter.chain.ServletRequestWrapper
getExtension, getFilterChain, getFilteredResponse, isDisposed, recycle, recycle, recycled, setExtension
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getRequest, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorRequest

public ConnectorRequest(Connection c)
Constructs a new request.

Parameters:
c - the connection.

ConnectorRequest

public ConnectorRequest(Connection c,
                        InputStream in)
Constructs a new request with a stream.

Parameters:
c - the connection.
in - an input stream.
Method Detail

recycle

public void recycle(Connection c,
                    InputStream in)
Recycles a request with a stream.

Parameters:
c - the connection.
in - an input stream.

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

disposed

public void disposed()
Description copied from interface: Poolable
A call back indicating that this instance is not needed any more and can be disposed.

Specified by:
disposed in interface Poolable
Overrides:
disposed in class ServletRequestWrapper

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.

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.