org.mortbay.jetty.ajp
Class Ajp13Request

java.lang.Object
  extended by org.mortbay.jetty.Request
      extended by org.mortbay.jetty.ajp.Ajp13Request
All Implemented Interfaces:
HttpServletRequest, ServletRequest

public class Ajp13Request
extends Request


Field Summary
protected  HttpConnection _connection
           
protected  String _remoteAddr
           
protected  String _remoteHost
           
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
Ajp13Request(HttpConnection connection)
           
 
Method Summary
 String getRemoteAddr()
          Returns the Internet Protocol (IP) address of the client or last proxy that sent the request.
 String getRemoteHost()
          Returns the fully qualified name of the client or the last proxy that sent the request.
protected  void recycle()
           
 void setRemoteAddr(String remoteAddr)
           
 void setRemoteHost(String remoteHost)
           
 
Methods inherited from class org.mortbay.jetty.Request
addEventListener, getAttribute, getAttributeNames, getAttributes, getAuthType, getCharacterEncoding, getConnection, getContentLength, getContentType, getContext, getContextPath, getContinuation, getContinuation, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getInputState, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameters, getParameterValues, getPathInfo, getPathTranslated, getProtocol, getQueryEncoding, getQueryString, getReader, getRealPath, getRemotePort, getRemoteUser, getRequest, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getRoleMap, getRootURL, getScheme, getServerName, getServerPort, getServletName, getServletPath, getSession, getSession, getSessionManager, getTimeStamp, getTimeStampStr, getUri, getUserPrincipal, getUserRealm, isHandled, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, recoverNewSession, removeAttribute, removeEventListener, saveNewSession, setAttribute, setAttributes, setAuthType, setCharacterEncoding, setCharacterEncodingUnchecked, setContentType, setContext, setContextPath, setCookies, setHandled, setMethod, setParameters, setPathInfo, setProtocol, setQueryEncoding, setQueryString, setRequestedSessionId, setRequestedSessionIdFromCookie, setRequestURI, setRoleMap, setScheme, setServerName, setServerPort, setServletName, setServletPath, setSession, setSessionManager, setTimeStamp, setUri, setUserPrincipal, setUserRealm, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_remoteAddr

protected String _remoteAddr

_remoteHost

protected String _remoteHost

_connection

protected HttpConnection _connection
Constructor Detail

Ajp13Request

public Ajp13Request(HttpConnection connection)
Method Detail

getRemoteAddr

public String getRemoteAddr()
Description copied from interface: ServletRequest
Returns the Internet Protocol (IP) address of the client or last proxy that sent the request. For HTTP servlets, same as the value of the CGI variable REMOTE_ADDR.

Specified by:
getRemoteAddr in interface ServletRequest
Overrides:
getRemoteAddr in class Request
Returns:
a String containing the IP address of the client that sent the request

setRemoteAddr

public void setRemoteAddr(String remoteAddr)

getRemoteHost

public String getRemoteHost()
Description copied from interface: ServletRequest
Returns the fully qualified name of the client or the last proxy that sent the request. If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address. For HTTP servlets, same as the value of the CGI variable REMOTE_HOST.

Specified by:
getRemoteHost in interface ServletRequest
Overrides:
getRemoteHost in class Request
Returns:
a String containing the fully qualified name of the client

setRemoteHost

public void setRemoteHost(String remoteHost)

recycle

protected void recycle()
Overrides:
recycle in class Request


Copyright © 2007 Mort Bay Consulting. All Rights Reserved.