All Packages Class Hierarchy This Package Previous Next Index
Interface org.apache.tomcat.core.Request
- public interface Request
-
getAttribute(String)
-
-
getAttributeNames()
-
-
getAuthType()
-
-
getCharacterEncoding()
-
-
getContainer()
-
-
getContentLength()
-
-
getContentType()
-
-
getContext()
-
-
getContextManager()
-
-
getCookies()
- Return the cookies
-
getFacade()
- One-to-One with Facade
-
getHeader(String)
-
-
getHeaderNames()
-
-
getHeaders(String)
-
-
getInputStream()
-
-
getJvmRoute()
-
-
getLookupPath()
-
-
getMappedPath()
- The file - result of mapping the request ( using aliases and other
mapping rules.
Deprecated.
-
getMethod()
-
-
getParameterNames()
-
-
getParameters()
-
Deprecated.
-
getParameterValues(String)
-
-
getPathInfo()
- Path Info - set be mappers or from adapter
-
getPathTranslated()
- Real Path - should be implemented as a callback ( override it in adapters).
-
getProtocol()
-
-
getQueryString()
-
-
getReader()
-
-
getRemoteAddr()
-
-
getRemoteHost()
- Expensive - should be implemented as a callback where
possible!
-
getRemoteUser()
-
-
getRequestedSessionId()
-
-
getRequestURI()
-
-
getResponse()
- One-to-One with Response
-
getScheme()
-
-
getServerName()
-
-
getServerPort()
-
-
getServletPath()
-
-
getSession(boolean)
-
-
getUserPrincipal()
-
Deprecated.
-
getWrapper()
- Wrapper - the servlet that will execute the request
Similar with "handler" in Apache.
Deprecated.
-
isRequestedSessionIdFromCookie()
-
-
isRequestedSessionIdFromURL()
-
-
isRequestedSessionIdValid()
-
-
isSecure()
-
-
isUserInRole(String)
-
Deprecated.
-
recycle()
- Support for "pools"
-
removeAttribute(String)
-
-
setAttribute(String, Object)
-
-
setAuthType(String)
-
-
setCharEncoding(String)
-
-
setContainer(Container)
-
-
setContentLength(int)
-
-
setContentType(String)
-
-
setContext(Context)
- Context - will be set by contextMap stage of request interceptors
-
setContextManager(ContextManager)
- Pointer to the server engine - for errors, etc
-
setLookupPath(String)
- Everything after context path ( servletPath + pathInfo + queryInfo )
-
setMappedPath(String)
-
Deprecated.
-
setParameters(Hashtable)
-
Deprecated.
-
setPathInfo(String)
-
-
setPathTranslated(String)
-
-
setQueryString(String)
- Set query string - will be called by forward
-
setRemoteUser(String)
-
-
setRequestedSessionId(String)
-
-
setRequestedSessionIdFromCookie(boolean)
-
-
setRequestedSessionIdFromURL(boolean)
-
-
setRequestURI(String)
-
-
setResponse(Response)
-
-
setServerName(String)
-
-
setServletPath(String)
- Servlet Path
-
setSession(HttpSession)
-
-
setWrapper(ServletWrapper)
-
Deprecated.
getJvmRoute
public abstract String getJvmRoute()
getScheme
public abstract String getScheme()
getMethod
public abstract String getMethod()
getRequestURI
public abstract String getRequestURI()
setRequestURI
public abstract void setRequestURI(String r)
getQueryString
public abstract String getQueryString()
getProtocol
public abstract String getProtocol()
getServerName
public abstract String getServerName()
setServerName
public abstract void setServerName(String serverName)
getServerPort
public abstract int getServerPort()
getRemoteAddr
public abstract String getRemoteAddr()
getRemoteHost
public abstract String getRemoteHost()
- Expensive - should be implemented as a callback where
possible!
getHeader
public abstract String getHeader(String name)
getHeaderNames
public abstract Enumeration getHeaderNames()
getHeaders
public abstract Enumeration getHeaders(String name)
getCookies
public abstract Cookie[] getCookies()
- Return the cookies
getContentLength
public abstract int getContentLength()
setContentLength
public abstract void setContentLength(int len)
getContentType
public abstract String getContentType()
setContentType
public abstract void setContentType(String type)
setCharEncoding
public abstract void setCharEncoding(String enc)
getCharacterEncoding
public abstract String getCharacterEncoding()
setContext
public abstract void setContext(Context context)
- Context - will be set by contextMap stage of request interceptors
getContext
public abstract Context getContext()
setLookupPath
public abstract void setLookupPath(String l)
- Everything after context path ( servletPath + pathInfo + queryInfo )
getLookupPath
public abstract String getLookupPath()
getPathTranslated
public abstract String getPathTranslated()
- Real Path - should be implemented as a callback ( override it in adapters).
Map interceptor should set it to something reasonable ( context home + path )
MappedPath is similar - it contain mappings inside a context, for normal
contexts pathTranslated==context.docBase + mappedPath
setPathTranslated
public abstract void setPathTranslated(String path)
getPathInfo
public abstract String getPathInfo()
- Path Info - set be mappers or from adapter
setPathInfo
public abstract void setPathInfo(String pathInfo)
setServletPath
public abstract void setServletPath(String servletPath)
- Servlet Path
getServletPath
public abstract String getServletPath()
getContainer
public abstract Container getContainer()
setContainer
public abstract void setContainer(Container handler)
getAuthType
public abstract String getAuthType()
setAuthType
public abstract void setAuthType(String authType)
getRemoteUser
public abstract String getRemoteUser()
setRemoteUser
public abstract void setRemoteUser(String s)
isSecure
public abstract boolean isSecure()
getRequestedSessionId
public abstract String getRequestedSessionId()
setRequestedSessionId
public abstract void setRequestedSessionId(String reqSessionId)
isRequestedSessionIdFromCookie
public abstract boolean isRequestedSessionIdFromCookie()
setRequestedSessionIdFromCookie
public abstract void setRequestedSessionIdFromCookie(boolean newState)
isRequestedSessionIdFromURL
public abstract boolean isRequestedSessionIdFromURL()
setRequestedSessionIdFromURL
public abstract void setRequestedSessionIdFromURL(boolean newState)
setSession
public abstract void setSession(HttpSession serverSession)
getSession
public abstract HttpSession getSession(boolean create)
isRequestedSessionIdValid
public abstract boolean isRequestedSessionIdValid()
setQueryString
public abstract void setQueryString(String queryString)
- Set query string - will be called by forward
getParameterValues
public abstract String[] getParameterValues(String name)
getParameterNames
public abstract Enumeration getParameterNames()
getAttribute
public abstract Object getAttribute(String name)
setAttribute
public abstract void setAttribute(String name,
Object value)
removeAttribute
public abstract void removeAttribute(String name)
getAttributeNames
public abstract Enumeration getAttributeNames()
getReader
public abstract BufferedReader getReader() throws IOException
getInputStream
public abstract ServletInputStream getInputStream() throws IOException
recycle
public abstract void recycle()
- Support for "pools"
getResponse
public abstract Response getResponse()
- One-to-One with Response
setResponse
public abstract void setResponse(Response response)
getFacade
public abstract HttpServletRequestFacade getFacade()
- One-to-One with Facade
setContextManager
public abstract void setContextManager(ContextManager cm)
- Pointer to the server engine - for errors, etc
getContextManager
public abstract ContextManager getContextManager()
setParameters
public abstract void setParameters(Hashtable h)
- Note: setParameters() is deprecated.
internal use only
getParameters
public abstract Hashtable getParameters()
- Note: getParameters() is deprecated.
internal use only
getUserPrincipal
public abstract Principal getUserPrincipal()
- Note: getUserPrincipal() is deprecated.
isUserInRole
public abstract boolean isUserInRole(String role)
- Note: isUserInRole() is deprecated.
getWrapper
public abstract ServletWrapper getWrapper()
- Note: getWrapper() is deprecated.
- use Container instead
- Wrapper - the servlet that will execute the request
Similar with "handler" in Apache.
setWrapper
public abstract void setWrapper(ServletWrapper handler)
- Note: setWrapper() is deprecated.
- use Container instead
getMappedPath
public abstract String getMappedPath()
- Note: getMappedPath() is deprecated.
- internal use only
- The file - result of mapping the request ( using aliases and other
mapping rules. Usefull only for static resources.
setMappedPath
public abstract void setMappedPath(String m)
- Note: setMappedPath() is deprecated.
- internal use only
All Packages Class Hierarchy This Package Previous Next Index