All Packages Class Hierarchy This Package Previous Next Index
Class org.apache.tomcat.core.RequestImpl
java.lang.Object
|
+----org.apache.tomcat.core.RequestImpl
- public class RequestImpl
- extends Object
- implements Request
- Author:
- James Duncan Davidson [duncan@eng.sun.com], James Todd [gonzo@eng.sun.com], Jason Hunter [jch@eng.sun.com], Harish Prabandham, Alex Cruikshank [alex@epitonic.com]
-
attributes
-
-
authType
-
-
charEncoding
-
-
contentLength
-
-
contentType
-
-
context
-
-
contextM
-
-
contextPath
-
-
cookies
-
-
didCookies
-
-
didParameters
-
-
didReadFormData
-
-
handler
-
-
headers
-
-
in
-
-
jvmRoute
-
-
lookupPath
-
-
mappedPath
-
-
method
-
-
parameters
-
-
pathInfo
-
-
pathTranslated
-
-
pathTranslatedIsSet
-
-
protocol
-
-
queryString
-
-
remoteAddr
-
-
remoteHost
-
-
remoteUser
-
-
reqSessionId
-
-
requestFacade
-
-
requestURI
-
-
response
-
-
scheme
-
-
serverName
-
-
serverPort
-
-
serverSession
-
-
servletName
-
-
servletPath
-
-
sessionIdFromCookie
-
-
sessionIdFromURL
-
-
sm
-
-
RequestImpl()
-
-
doRead()
-
-
doRead(byte[], int, int)
- Fill in the buffer.
-
getAttribute(String)
-
-
getAttributeNames()
-
-
getAuthType()
-
-
getCharacterEncoding()
-
-
getContainer()
-
-
getContentLength()
-
-
getContentType()
-
-
getContext()
-
-
getContextManager()
-
-
getCookies()
-
-
getFacade()
-
-
getHeader(String)
-
-
getHeaderNames()
-
-
getHeaders(String)
-
-
getInputStream()
-
-
getJvmRoute()
-
-
getLookupPath()
-
-
getMappedPath()
- The file - result of mapping the request ( using aliases and other
mapping rules.
-
getMethod()
-
-
getMimeHeaders()
-
-
getParameterNames()
-
-
getParameters()
-
-
getParameterValues(String)
-
-
getPathInfo()
-
-
getPathTranslated()
-
-
getProtocol()
-
-
getQueryString()
-
-
getReader()
-
-
getRemoteAddr()
-
-
getRemoteHost()
-
-
getRemoteUser()
-
-
getRequestedSessionId()
-
-
getRequestURI()
-
-
getResponse()
-
-
getScheme()
-
-
getServerName()
-
-
getServerPort()
-
-
getServletPath()
-
-
getServletPrefix()
-
-
getSession(boolean)
-
-
getUserPrincipal()
-
-
getWrapper()
-
-
isRequestedSessionIdFromCookie()
-
-
isRequestedSessionIdFromURL()
-
-
isRequestedSessionIdValid()
-
-
isSecure()
-
-
isUserInRole(String)
-
-
recycle()
-
-
removeAttribute(String)
-
-
setAttribute(String, Object)
-
-
setAuthType(String)
-
-
setBody(StringBuffer)
-
-
setCharEncoding(String)
-
-
setContainer(Container)
-
-
setContentLength(int)
-
-
setContentType(String)
-
-
setContext(Context)
-
-
setContextManager(ContextManager)
-
-
setLookupPath(String)
-
-
setMappedPath(String)
-
-
setMethod(String)
-
-
setMimeHeaders(MimeHeaders)
-
-
setParameters(Hashtable)
-
-
setPathInfo(String)
-
-
setPathTranslated(String)
- All adapters that know the PT needs to call this method,
in order to set pathTranslatedIsSet, otherwise tomcat
will try to compute it again
-
setProtocol(String)
-
-
setQueryString(String)
- Set query string - will be called by forward
-
setRemoteAddr(String)
-
-
setRemoteHost(String)
-
-
setRemoteUser(String)
-
-
setRequestedSessionId(String)
-
-
setRequestedSessionIdFromCookie(boolean)
-
-
setRequestedSessionIdFromURL(boolean)
-
-
setRequestURI(String)
-
-
setResponse(Response)
-
-
setScheme(String)
-
-
setServerName(String)
- Virtual host
-
setServerPort(int)
-
-
setServletPath(String)
-
-
setSession(HttpSession)
-
-
setWrapper(ServletWrapper)
-
-
toString()
-
-
toStringDebug()
-
jvmRoute
protected String jvmRoute
requestURI
protected String requestURI
queryString
protected String queryString
serverName
protected String serverName
cookies
protected Vector cookies
contextPath
protected String contextPath
lookupPath
protected String lookupPath
servletPath
protected String servletPath
pathInfo
protected String pathInfo
pathTranslated
protected String pathTranslated
pathTranslatedIsSet
protected boolean pathTranslatedIsSet
parameters
protected Hashtable parameters
contentLength
protected int contentLength
contentType
protected String contentType
charEncoding
protected String charEncoding
authType
protected String authType
remoteUser
protected String remoteUser
response
protected Response response
requestFacade
protected HttpServletRequestFacade requestFacade
context
protected Context context
contextM
protected ContextManager contextM
attributes
protected Hashtable attributes
didReadFormData
protected boolean didReadFormData
didParameters
protected boolean didParameters
didCookies
protected boolean didCookies
reqSessionId
protected String reqSessionId
sessionIdFromCookie
protected boolean sessionIdFromCookie
sessionIdFromURL
protected boolean sessionIdFromURL
serverSession
protected HttpSession serverSession
servletName
protected String servletName
handler
protected ServletWrapper handler
mappedPath
protected String mappedPath
scheme
protected String scheme
method
protected String method
protocol
protected String protocol
headers
protected MimeHeaders headers
in
protected ServletInputStream in
serverPort
protected int serverPort
remoteAddr
protected String remoteAddr
remoteHost
protected String remoteHost
sm
protected static StringManager sm
RequestImpl
public RequestImpl()
getJvmRoute
public String getJvmRoute()
getScheme
public String getScheme()
getMethod
public String getMethod()
getRequestURI
public String getRequestURI()
getQueryString
public String getQueryString()
getProtocol
public String getProtocol()
getServerName
public String getServerName()
getLookupPath
public String getLookupPath()
setLookupPath
public void setLookupPath(String l)
getParameterValues
public String[] getParameterValues(String name)
getParameterNames
public Enumeration getParameterNames()
getAuthType
public String getAuthType()
getCharacterEncoding
public String getCharacterEncoding()
getContentLength
public int getContentLength()
getContentType
public String getContentType()
setPathTranslated
public void setPathTranslated(String s)
- All adapters that know the PT needs to call this method,
in order to set pathTranslatedIsSet, otherwise tomcat
will try to compute it again
getPathTranslated
public String getPathTranslated()
getPathInfo
public String getPathInfo()
setRemoteUser
public void setRemoteUser(String s)
getRemoteUser
public String getRemoteUser()
isSecure
public boolean isSecure()
getUserPrincipal
public Principal getUserPrincipal()
isUserInRole
public boolean isUserInRole(String role)
getRequestedSessionId
public String getRequestedSessionId()
setRequestedSessionId
public void setRequestedSessionId(String reqSessionId)
getServletPath
public String getServletPath()
getFacade
public HttpServletRequestFacade getFacade()
getContext
public Context getContext()
setResponse
public void setResponse(Response response)
getResponse
public Response getResponse()
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()
setRequestedSessionIdFromCookie
public void setRequestedSessionIdFromCookie(boolean newState)
setRequestedSessionIdFromURL
public void setRequestedSessionIdFromURL(boolean newState)
setContext
public void setContext(Context context)
setContextManager
public void setContextManager(ContextManager cm)
getContextManager
public ContextManager getContextManager()
getCookies
public Cookie[] getCookies()
getSession
public HttpSession getSession(boolean create)
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()
getWrapper
public ServletWrapper getWrapper()
setWrapper
public void setWrapper(ServletWrapper handler)
getContainer
public Container getContainer()
setContainer
public void setContainer(Container container)
getMappedPath
public String getMappedPath()
- The file - result of mapping the request ( using aliases and other
mapping rules. Usefull only for static resources.
setMappedPath
public void setMappedPath(String m)
setRequestURI
public void setRequestURI(String r)
setParameters
public void setParameters(Hashtable h)
getParameters
public Hashtable getParameters()
setContentLength
public void setContentLength(int len)
setContentType
public void setContentType(String type)
setCharEncoding
public void setCharEncoding(String enc)
setAuthType
public void setAuthType(String authType)
setPathInfo
public void setPathInfo(String pathInfo)
setQueryString
public void setQueryString(String queryString)
- Set query string - will be called by forward
setSession
public void setSession(HttpSession serverSession)
setServletPath
public void setServletPath(String servletPath)
setServerName
public void setServerName(String serverName)
- Virtual host
getAttribute
public Object getAttribute(String name)
setAttribute
public void setAttribute(String name,
Object value)
removeAttribute
public void removeAttribute(String name)
getAttributeNames
public Enumeration getAttributeNames()
getHeaders
public Enumeration getHeaders(String name)
getReader
public BufferedReader getReader() throws IOException
recycle
public void recycle()
getMimeHeaders
public MimeHeaders getMimeHeaders()
getHeader
public String getHeader(String name)
getHeaderNames
public Enumeration getHeaderNames()
getInputStream
public ServletInputStream getInputStream() throws IOException
getServerPort
public int getServerPort()
getRemoteAddr
public String getRemoteAddr()
getRemoteHost
public String getRemoteHost()
doRead
public int doRead(byte b[],
int off,
int len) throws IOException
- Fill in the buffer. This method is probably easier to implement than
previous.
This method should only be called from SerlvetInputStream implementations.
No need to implement it if your adapter implements ServletInputStream.
doRead
public int doRead() throws IOException
getServletPrefix
public String getServletPrefix()
setScheme
public void setScheme(String scheme)
setMethod
public void setMethod(String method)
setProtocol
public void setProtocol(String protocol)
setMimeHeaders
public void setMimeHeaders(MimeHeaders headers)
setBody
public void setBody(StringBuffer body)
setServerPort
public void setServerPort(int serverPort)
setRemoteAddr
public void setRemoteAddr(String remoteAddr)
setRemoteHost
public void setRemoteHost(String remoteHost)
toString
public String toString()
- Overrides:
- toString in class Object
toStringDebug
public String toStringDebug()
All Packages Class Hierarchy This Package Previous Next Index