org.norther.tammi.spray.remote.chain
Class HttpRMIRequest

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by org.norther.tammi.spray.filter.chain.ServletRequestWrapper
          extended by org.norther.tammi.spray.filter.chain.HttpServletRequestWrapper
              extended by org.norther.tammi.spray.protocol.chain.AbstractProtocolRequest
                  extended by org.norther.tammi.spray.protocol.chain.BaseProtocolRequest
                      extended by org.norther.tammi.spray.protocol.chain.HttpProtocolRequest
                          extended by org.norther.tammi.spray.remote.chain.HttpRMIRequest
All Implemented Interfaces:
EventListener, HttpServletRequest, ServletRequest, Poolable, Recyclable, FilterChainListener

public class HttpRMIRequest
extends HttpProtocolRequest

An HTTP request through an RMI connection.

Author:
Ilkka Priha

Nested Class Summary
 
Nested classes/interfaces inherited from class org.norther.tammi.spray.protocol.chain.AbstractProtocolRequest
AbstractProtocolRequest.ProtocolRequestExtension
 
Field Summary
 
Fields inherited from class org.norther.tammi.spray.protocol.chain.AbstractProtocolRequest
BODY_PARSED, COOKIE_SESSION, HEADERS_PARSED, REQUEST_PARSED, URI_PARSED, URL_SESSION
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
HttpRMIRequest(String method, String uri, String protocol, Map heads, Map params)
          Constructs a new request.
 
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.
protected  Map getParsedHeaderMap()
          Gets the parsed HTTP headers as a map of names and value vectors.
protected  Map getParsedParameterMap()
          Gets the parsed parameters as a map of names and value arrays.
protected  List getParsedRequestList()
          Gets the parsed request as a list of items.
 void recycle(String method, String uri, String protocol, Map heads, Map params)
          Recycles an existing request.
 void setConnection(Connection con)
          Sets the connection.
 
Methods inherited from class org.norther.tammi.spray.protocol.chain.HttpProtocolRequest
drain, filtered, getAttribute, getAuthType, getContextPath, getInputStream, getMaxRequestLength, getParsedRequestURI, getPathInfo, getPathTranslated, getReader, getRemoteAddr, getRemoteUser, getRequestedSessionId, getServerPort, getSession, getSession, getUserPrincipal, isRedirection, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isSecureSession, isUserInRole, setMaxRequestLength
 
Methods inherited from class org.norther.tammi.spray.protocol.chain.BaseProtocolRequest
getCharacterEncoding, getContentLength, getContentType, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getLocale, getLocales, getMethod, getProtocol, getQueryString, getRequestDispatcher, getRequestURI, getRequestURL, getServerName, getServletPath
 
Methods inherited from class org.norther.tammi.spray.protocol.chain.AbstractProtocolRequest
addParameter, addParameter, addParameterMap, getAuthorityURL, getAuthorityURL, getAuthorityURL, getHttpFilter, getInternalCharacterEncoding, getParameter, getParameterMap, getParameterNames, getParameterValues, getPathTail, getRedirectionURL, getVersion, isAuthentication, removeParameter, setAuthentication, setParameter, setRedirection, setRedirectionURL
 
Methods inherited from class org.norther.tammi.spray.filter.chain.HttpServletRequestWrapper
setRequest
 
Methods inherited from class org.norther.tammi.spray.filter.chain.ServletRequestWrapper
completed, getExtension, getFilterChain, getFilteredRequest, getFilteredResponse, isDisposed, recycle, recycle, recycled, setExtension
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttributeNames, getLocalAddr, getLocalName, getLocalPort, getRealPath, getRemoteHost, getRemotePort, getRequest, getScheme, removeAttribute, setAttribute, setCharacterEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.http.HttpServletRequest
getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getQueryString, getRequestURI, getRequestURL, getServletPath
 
Methods inherited from interface javax.servlet.ServletRequest
getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

HttpRMIRequest

public HttpRMIRequest(String method,
                      String uri,
                      String protocol,
                      Map heads,
                      Map params)
Constructs a new request.

Parameters:
method - the method.
uri - the URI.
protocol - the protocol.
heads - the headers.
params - the parameters.
Method Detail

recycle

public void recycle(String method,
                    String uri,
                    String protocol,
                    Map heads,
                    Map params)
Recycles an existing request.

Parameters:
method - the method.
uri - the URI.
protocol - the protocol.
heads - the headers.
params - the parameters.

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 HttpProtocolRequest

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

setConnection

public void setConnection(Connection con)
Sets the connection.

Parameters:
con - the connection.

getParsedRequestList

protected List getParsedRequestList()
Description copied from class: BaseProtocolRequest
Gets the parsed request as a list of items.

Overrides:
getParsedRequestList in class HttpProtocolRequest
Returns:
the parsed request as a list.

getParsedHeaderMap

protected Map getParsedHeaderMap()
Description copied from class: BaseProtocolRequest
Gets the parsed HTTP headers as a map of names and value vectors.

Overrides:
getParsedHeaderMap in class HttpProtocolRequest
Returns:
the parsed headers as a map.

getParsedParameterMap

protected Map getParsedParameterMap()
Description copied from class: AbstractProtocolRequest
Gets the parsed parameters as a map of names and value arrays.

Overrides:
getParsedParameterMap in class HttpProtocolRequest
Returns:
the parsed parameters as a map.


Copyright © 2004 The Norther Organization. All rights reserved.