org.enhydra.servlet.connectionMethods.EnhydraDirector
Class DirectorRequest

java.lang.Object
  extended byorg.enhydra.servlet.connectionMethods.EnhydraDirector.DirectorRequest
All Implemented Interfaces:
org.apache.catalina.HttpRequest, javax.servlet.http.HttpServletRequest, org.apache.catalina.Request, javax.servlet.ServletRequest

public class DirectorRequest
extends java.lang.Object
implements org.apache.catalina.HttpRequest, javax.servlet.http.HttpServletRequest

Enhydra Director implementation of the request.

Author:
Milin Radivoj

Field Summary
protected  EnhydraDirectorConnection connection
           
protected  org.apache.catalina.connector.HttpRequestFacade facade
          Return the ServletRequest for which this object is the facade.
protected  javax.servlet.FilterChain filterChain
           
protected  boolean secure
           
protected  org.apache.catalina.ValveContext valveContext
           
protected  org.apache.catalina.Response wrapedResponse
           
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
DirectorRequest(EnhydraDirectorConnection req)
           
 
Method Summary
 void addCookie(javax.servlet.http.Cookie cookie)
          Add a Cookie to the set of Cookies associated with this Request.
 void addHeader(java.lang.String name, java.lang.String value)
          Add a Header to the set of Headers associated with this Request.
 void addLocale(java.util.Locale locale)
          Add a Locale to the set of preferred Locales for this Request.
 void addParameter(java.lang.String name, java.lang.String[] values)
          Add a parameter name and corresponding set of values to this Request.
 void clearCookies()
          Clear the collection of Cookies associated with this Request.
 void clearHeaders()
          Clear the collection of Headers associated with this Request.
 void clearLocales()
          Clear the collection of Locales associated with this Request.
 void clearParameters()
          Clear the collection of parameters associated with this Request.
 javax.servlet.ServletInputStream createInputStream()
          Create and return a ServletInputStream to read the content associated with this Request.
 void finishRequest()
          Perform whatever actions are required to close the input stream
 java.lang.Object getAttribute(java.lang.String name)
          Return request attribute if it exists
 java.util.Enumeration getAttributeNames()
          Return the names of all request attributes for this Request
 java.lang.String getAuthorization()
          Return the authorization credentials sent with this request.
 java.lang.String getAuthType()
          Get the Auth Type associated with this Request.
 java.lang.String getCharacterEncoding()
          Return the Character Encoding associated with this Request.
 org.apache.catalina.Connector getConnector()
          Return the Connector through which this Request was received.
 int getContentLength()
          Return the Content Length associated with this Request.
 java.lang.String getContentType()
          Return the Content Type associated with this Request.
 org.apache.catalina.Context getContext()
          Return the Context within which this Request is being processed.
 java.lang.String getContextPath()
          Get the Context Path associated with this Request.
 org.apache.tomcat.util.buf.MessageBytes getContextPathMB()
          Get the context path.
 javax.servlet.http.Cookie[] getCookies()
          Get cookies associated with this Request.
 long getDateHeader(java.lang.String name)
          Return the Date Header with the specified name associated with this Request.
 java.lang.String getDecodedRequestURI()
          Get the decoded request URI.
 org.apache.tomcat.util.buf.MessageBytes getDecodedRequestURIMB()
          Get the decoded request URI.
 javax.servlet.FilterChain getFilterChain()
          Get filter chain associated with the request.
 java.lang.String getHeader(java.lang.String name)
          Return the Header with the specified name associated with this Request.
 java.util.Enumeration getHeaderNames()
          Return the Header names associated with this Request.
 java.util.Enumeration getHeaders(java.lang.String name)
          Return the Header names with the specified name associated with this Request.
 org.apache.catalina.Host getHost()
          Return the Host within which this Request is being processed.
 java.lang.String getInfo()
          Return descriptive information about this Request implementation
 javax.servlet.ServletInputStream getInputStream()
          Return the servlet input stream for this Request.
 int getIntHeader(java.lang.String name)
          Return the Int Header with the specified name associated with this Request.
 java.lang.String getLocalAddr()
          Returns the Internet Protocol (IP) address of the interface on which the request was received.
 java.util.Locale getLocale()
          Return the preferred Locale that the client will accept content in, based on the value for the first Accept-Language header that was encountered.
 java.util.Enumeration getLocales()
          Return the set of preferred Locales that the client will accept content in, based on the values for any Accept-Language headers that were encountered.
 java.lang.String getLocalName()
          Returns the host name of the Internet Protocol (IP) interface on which the request was received.
 int getLocalPort()
          Returns the Internet Protocol (IP) port number of the interface on which the request was received.
 org.apache.tomcat.util.http.mapper.MappingData getMappingData()
          Return mapping data
 java.lang.String getMethod()
          Get the method associated with this Request.
 java.lang.Object getNote(java.lang.String name)
          Return the object bound with the specified name to the internal notes for this request, or null if no such binding exists.
 java.util.Iterator getNoteNames()
          Return an Iterator containing the String names of all notes bindings that exist for this request.
 java.lang.String getParameter(java.lang.String name)
          Return the parameter with the specified name
 java.util.Map getParameterMap()
          Returns a Map of the parameters of this request.
 java.util.Enumeration getParameterNames()
          Return the parameter names
 java.lang.String[] getParameterValues(java.lang.String name)
          Return the parameter values
 java.lang.String getPathInfo()
          Get the Path Info associated with this Request.
 org.apache.tomcat.util.buf.MessageBytes getPathInfoMB()
          Get the path info.
 java.lang.String getPathTranslated()
          Get the Path Translated associated with this Request.
 java.lang.String getProtocol()
          Return the Protocol associated with this Request.
 java.lang.String getQueryString()
          Get the Query String associated with this Request.
 java.io.BufferedReader getReader()
          Read the Reader wrapping the input stream for this Request.
 java.lang.String getRealPath(java.lang.String path)
          Return the real path of the specified virtual path.
 java.lang.String getRemoteAddr()
          Return the remote IP address making this Request.
 java.lang.String getRemoteHost()
          Return the remote host name making this Request.
 int getRemotePort()
          Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request.
 java.lang.String getRemoteUser()
          Get the Remote User associated with this Request.
 javax.servlet.ServletRequest getRequest()
           
 javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String path)
          Return a RequestDispatcher that wraps the resource at the specified path, which may be interpreted as relative to the current request path.
 java.lang.String getRequestedSessionId()
          Get the Requested SessionId associated with this Request.
 org.apache.tomcat.util.buf.MessageBytes getRequestPathMB()
          Get the request path.
 java.lang.String getRequestURI()
          Get the Requested URI associated with this Request.
 java.lang.StringBuffer getRequestURL()
          Get the Requested URL associated with this Request.
 org.apache.catalina.Response getResponse()
          Return the Response with which this Request is associated.
 java.lang.String getScheme()
          Return the scheme used to make this Request.
 java.lang.String getServerName()
          Return the Server Name
 int getServerPort()
          Return the Server Port
 java.lang.String getServletPath()
          Get the Servlet Path associated with this Request.
 org.apache.tomcat.util.buf.MessageBytes getServletPathMB()
          Get the servlet path.
 javax.servlet.http.HttpSession getSession()
          Get the Http session associated with this Request.
 javax.servlet.http.HttpSession getSession(boolean create)
          Return the session associated with this Request, creating one if necessary and requested.
 java.net.Socket getSocket()
          Not in use
 java.io.InputStream getStream()
          Return the input stream associated with this Request.
 java.security.Principal getUserPrincipal()
          Get the User Principal associated with this Request.
 org.apache.catalina.ValveContext getValveContext()
          Get valve context.
 org.apache.catalina.Wrapper getWrapper()
          Return the Wrapper within which this Request is being processed.
 boolean isRequestedSessionIdFromCookie()
          Return true if the session identifier included in this request came from a cookie.
 boolean isRequestedSessionIdFromUrl()
           
 boolean isRequestedSessionIdFromURL()
          Return true if the session identifier included in this request came from the request URI.
 boolean isRequestedSessionIdValid()
           
 boolean isSecure()
           
 boolean isUserInRole(java.lang.String role)
           
 void recycle()
          Release all object references, and initialize instance variables, in preparation for reuse of this object.
 void removeAttribute(java.lang.String name)
          Remove request attribute
 void removeNote(java.lang.String name)
          Remove any object bound to the specified name in the internal notes for this request.
 void setAttribute(java.lang.String name, java.lang.Object value)
          Set request attribute to the specified value
 void setAuthorization(java.lang.String authorization)
          Set the authorization credentials sent with this request.
 void setAuthType(java.lang.String type)
          Set the authentication type used for this request
 void setCharacterEncoding(java.lang.String env)
          Set the Character Encoding associated with this Request.
 void setConnector(org.apache.catalina.Connector connector)
          Set the Connector through which this Request was received.
 void setContentLength(int length)
          Set the content length associated with this Request.
 void setContentType(java.lang.String type)
          Set the content type associated with this Request.
 void setContext(org.apache.catalina.Context context)
          Set the Context within which this Request is being processed.
 void setContextPath(java.lang.String path)
          Set the context path for this Request.
 void setDecodedRequestURI(java.lang.String uri)
          Set the decoded request URI.
 void setFilterChain(javax.servlet.FilterChain filterChain)
          Set filter chain associated with the request.
 void setHost(org.apache.catalina.Host host)
          Set the Host within which this Request is being processed.
 void setMethod(java.lang.String method)
          Set the HTTP request method used for this Request.
 void setNote(java.lang.String name, java.lang.Object value)
          Bind an object to a specified name in the internal notes associated with this request, replacing any existing binding for this name.
 void setPathInfo(java.lang.String path)
          Set the path information for this Request.
 void setProtocol(java.lang.String protocol)
          Set the protocol name and version associated with this Request.
 void setQueryString(java.lang.String query)
          Set the query string for this Request
 void setRemoteAddr(java.lang.String remote)
          Set the remote IP address associated with this Request.
 void setRequestedSessionCookie(boolean flag)
          Set a flag indicating whether or not the requested session ID for this request came in through a cookie.
 void setRequestedSessionId(java.lang.String id)
          Set the requested session ID for this request.
 void setRequestedSessionURL(boolean flag)
          Set a flag indicating whether or not the requested session ID for this request came in through a URL.
 void setRequestURI(java.lang.String uri)
          Set the unparsed request URI for this Request.
 void setResponse(org.apache.catalina.Response response)
          Set the Response with which this Request is associated.
 void setScheme(java.lang.String scheme)
          Set the name of the scheme associated with this request.
 void setSecure(boolean secure)
          Set the value to be returned by isSecure()
 void setServerName(java.lang.String name)
          Set the name of the server (virtual host) to process this request.
 void setServerPort(int port)
          Set the port number of the server to process this request.
 void setServletPath(java.lang.String path)
          Set the servlet path for this Request.
 void setSocket(java.net.Socket socket)
          Not in use
 void setStream(java.io.InputStream stream)
          Set the input stream associated with this Request.
 void setUserPrincipal(java.security.Principal principal)
          Set the Principal who has been authenticated for this Request.
 void setValveContext(org.apache.catalina.ValveContext valveContext)
          Set valve context.
 void setWrapper(org.apache.catalina.Wrapper wrapper)
          Set the Wrapper within which this Request is being processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected EnhydraDirectorConnection connection

wrapedResponse

protected org.apache.catalina.Response wrapedResponse

filterChain

protected javax.servlet.FilterChain filterChain

valveContext

protected org.apache.catalina.ValveContext valveContext

secure

protected boolean secure

facade

protected org.apache.catalina.connector.HttpRequestFacade facade
Return the ServletRequest for which this object is the facade.

Constructor Detail

DirectorRequest

public DirectorRequest(EnhydraDirectorConnection req)
Method Detail

getMappingData

public org.apache.tomcat.util.http.mapper.MappingData getMappingData()
Return mapping data


getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Return request attribute if it exists

Specified by:
getAttribute in interface javax.servlet.ServletRequest

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Set request attribute to the specified value

Specified by:
setAttribute in interface javax.servlet.ServletRequest

removeAttribute

public void removeAttribute(java.lang.String name)
Remove request attribute

Specified by:
removeAttribute in interface javax.servlet.ServletRequest

getAttributeNames

public java.util.Enumeration getAttributeNames()
Return the names of all request attributes for this Request

Specified by:
getAttributeNames in interface javax.servlet.ServletRequest

getLocalPort

public int getLocalPort()
Returns the Internet Protocol (IP) port number of the interface on which the request was received.

Specified by:
getLocalPort in interface javax.servlet.ServletRequest

getRemotePort

public int getRemotePort()
Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request.

Specified by:
getRemotePort in interface javax.servlet.ServletRequest

getLocalAddr

public java.lang.String getLocalAddr()
Returns the Internet Protocol (IP) address of the interface on which the request was received.

Specified by:
getLocalAddr in interface javax.servlet.ServletRequest

getLocalName

public java.lang.String getLocalName()
Returns the host name of the Internet Protocol (IP) interface on which the request was received.

Specified by:
getLocalName in interface javax.servlet.ServletRequest

isRequestedSessionIdFromCookie

public boolean isRequestedSessionIdFromCookie()
Return true if the session identifier included in this request came from a cookie.

Specified by:
isRequestedSessionIdFromCookie in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdFromURL

public boolean isRequestedSessionIdFromURL()
Return true if the session identifier included in this request came from the request URI.

Specified by:
isRequestedSessionIdFromURL in interface javax.servlet.http.HttpServletRequest

getSession

public javax.servlet.http.HttpSession getSession(boolean create)
Return the session associated with this Request, creating one if necessary and requested.

Specified by:
getSession in interface javax.servlet.http.HttpServletRequest

getAuthorization

public java.lang.String getAuthorization()
Return the authorization credentials sent with this request.

Specified by:
getAuthorization in interface org.apache.catalina.Request

setAuthorization

public void setAuthorization(java.lang.String authorization)
Set the authorization credentials sent with this request.

Specified by:
setAuthorization in interface org.apache.catalina.Request

getConnector

public org.apache.catalina.Connector getConnector()
Return the Connector through which this Request was received.

Specified by:
getConnector in interface org.apache.catalina.Request

setConnector

public void setConnector(org.apache.catalina.Connector connector)
Set the Connector through which this Request was received.

Specified by:
setConnector in interface org.apache.catalina.Request
Parameters:
connector - The new connector

getContext

public org.apache.catalina.Context getContext()
Return the Context within which this Request is being processed.

Specified by:
getContext in interface org.apache.catalina.Request

setContext

public void setContext(org.apache.catalina.Context context)
Set the Context within which this Request is being processed.

Specified by:
setContext in interface org.apache.catalina.Request

getFilterChain

public javax.servlet.FilterChain getFilterChain()
Get filter chain associated with the request.

Specified by:
getFilterChain in interface org.apache.catalina.Request

setFilterChain

public void setFilterChain(javax.servlet.FilterChain filterChain)
Set filter chain associated with the request.

Specified by:
setFilterChain in interface org.apache.catalina.Request

getHost

public org.apache.catalina.Host getHost()
Return the Host within which this Request is being processed.

Specified by:
getHost in interface org.apache.catalina.Request

setHost

public void setHost(org.apache.catalina.Host host)
Set the Host within which this Request is being processed. This

Specified by:
setHost in interface org.apache.catalina.Request

getInfo

public java.lang.String getInfo()
Return descriptive information about this Request implementation

Specified by:
getInfo in interface org.apache.catalina.Request

getRequest

public javax.servlet.ServletRequest getRequest()
Specified by:
getRequest in interface org.apache.catalina.Request

getResponse

public org.apache.catalina.Response getResponse()
Return the Response with which this Request is associated.

Specified by:
getResponse in interface org.apache.catalina.Request

setResponse

public void setResponse(org.apache.catalina.Response response)
Set the Response with which this Request is associated.

Specified by:
setResponse in interface org.apache.catalina.Request

getSocket

public java.net.Socket getSocket()
Not in use

Specified by:
getSocket in interface org.apache.catalina.Request

setSocket

public void setSocket(java.net.Socket socket)
Not in use

Specified by:
setSocket in interface org.apache.catalina.Request

getStream

public java.io.InputStream getStream()
Return the input stream associated with this Request.

Specified by:
getStream in interface org.apache.catalina.Request

setStream

public void setStream(java.io.InputStream stream)
Set the input stream associated with this Request.

Specified by:
setStream in interface org.apache.catalina.Request

getValveContext

public org.apache.catalina.ValveContext getValveContext()
Get valve context.

Specified by:
getValveContext in interface org.apache.catalina.Request

setValveContext

public void setValveContext(org.apache.catalina.ValveContext valveContext)
Set valve context.

Specified by:
setValveContext in interface org.apache.catalina.Request

getWrapper

public org.apache.catalina.Wrapper getWrapper()
Return the Wrapper within which this Request is being processed.

Specified by:
getWrapper in interface org.apache.catalina.Request

setWrapper

public void setWrapper(org.apache.catalina.Wrapper wrapper)
Set the Wrapper within which this Request is being processed.

Specified by:
setWrapper in interface org.apache.catalina.Request

createInputStream

public javax.servlet.ServletInputStream createInputStream()
                                                   throws java.io.IOException
Create and return a ServletInputStream to read the content associated with this Request.

Specified by:
createInputStream in interface org.apache.catalina.Request
Throws:
java.io.IOException

finishRequest

public void finishRequest()
                   throws java.io.IOException
Perform whatever actions are required to close the input stream

Specified by:
finishRequest in interface org.apache.catalina.Request
Throws:
java.io.IOException

getNote

public java.lang.Object getNote(java.lang.String name)
Return the object bound with the specified name to the internal notes for this request, or null if no such binding exists.

Specified by:
getNote in interface org.apache.catalina.Request

getNoteNames

public java.util.Iterator getNoteNames()
Return an Iterator containing the String names of all notes bindings that exist for this request.

Specified by:
getNoteNames in interface org.apache.catalina.Request

recycle

public void recycle()
Release all object references, and initialize instance variables, in preparation for reuse of this object.

Specified by:
recycle in interface org.apache.catalina.Request

removeNote

public void removeNote(java.lang.String name)
Remove any object bound to the specified name in the internal notes for this request.

Specified by:
removeNote in interface org.apache.catalina.Request
Parameters:
name - Name of the note to be removed

setContentLength

public void setContentLength(int length)
Set the content length associated with this Request.

Specified by:
setContentLength in interface org.apache.catalina.Request

setContentType

public void setContentType(java.lang.String type)
Set the content type associated with this Request.

Specified by:
setContentType in interface org.apache.catalina.Request

setNote

public void setNote(java.lang.String name,
                    java.lang.Object value)
Bind an object to a specified name in the internal notes associated with this request, replacing any existing binding for this name.

Specified by:
setNote in interface org.apache.catalina.Request

setProtocol

public void setProtocol(java.lang.String protocol)
Set the protocol name and version associated with this Request.

Specified by:
setProtocol in interface org.apache.catalina.Request

setRemoteAddr

public void setRemoteAddr(java.lang.String remote)
Set the remote IP address associated with this Request.

Specified by:
setRemoteAddr in interface org.apache.catalina.Request

setScheme

public void setScheme(java.lang.String scheme)
Set the name of the scheme associated with this request.

Specified by:
setScheme in interface org.apache.catalina.Request

setSecure

public void setSecure(boolean secure)
Set the value to be returned by isSecure()

Specified by:
setSecure in interface org.apache.catalina.Request

setServerName

public void setServerName(java.lang.String name)
Set the name of the server (virtual host) to process this request.

Specified by:
setServerName in interface org.apache.catalina.Request

setServerPort

public void setServerPort(int port)
Set the port number of the server to process this request.

Specified by:
setServerPort in interface org.apache.catalina.Request
Parameters:
port - The server port

addCookie

public void addCookie(javax.servlet.http.Cookie cookie)
Add a Cookie to the set of Cookies associated with this Request.

Specified by:
addCookie in interface org.apache.catalina.HttpRequest

addHeader

public void addHeader(java.lang.String name,
                      java.lang.String value)
Add a Header to the set of Headers associated with this Request.

Specified by:
addHeader in interface org.apache.catalina.HttpRequest

addLocale

public void addLocale(java.util.Locale locale)
Add a Locale to the set of preferred Locales for this Request.

Specified by:
addLocale in interface org.apache.catalina.HttpRequest

addParameter

public void addParameter(java.lang.String name,
                         java.lang.String[] values)
Add a parameter name and corresponding set of values to this Request.

Specified by:
addParameter in interface org.apache.catalina.HttpRequest

clearCookies

public void clearCookies()
Clear the collection of Cookies associated with this Request.

Specified by:
clearCookies in interface org.apache.catalina.HttpRequest

clearHeaders

public void clearHeaders()
Clear the collection of Headers associated with this Request.

Specified by:
clearHeaders in interface org.apache.catalina.HttpRequest

clearLocales

public void clearLocales()
Clear the collection of Locales associated with this Request.

Specified by:
clearLocales in interface org.apache.catalina.HttpRequest

clearParameters

public void clearParameters()
Clear the collection of parameters associated with this Request.

Specified by:
clearParameters in interface org.apache.catalina.HttpRequest

setAuthType

public void setAuthType(java.lang.String type)
Set the authentication type used for this request

Specified by:
setAuthType in interface org.apache.catalina.HttpRequest

getContextPathMB

public org.apache.tomcat.util.buf.MessageBytes getContextPathMB()
Get the context path.

Specified by:
getContextPathMB in interface org.apache.catalina.HttpRequest

setContextPath

public void setContextPath(java.lang.String path)
Set the context path for this Request.

Specified by:
setContextPath in interface org.apache.catalina.HttpRequest

setMethod

public void setMethod(java.lang.String method)
Set the HTTP request method used for this Request.

Specified by:
setMethod in interface org.apache.catalina.HttpRequest

setQueryString

public void setQueryString(java.lang.String query)
Set the query string for this Request

Specified by:
setQueryString in interface org.apache.catalina.HttpRequest

getPathInfoMB

public org.apache.tomcat.util.buf.MessageBytes getPathInfoMB()
Get the path info.

Specified by:
getPathInfoMB in interface org.apache.catalina.HttpRequest

setPathInfo

public void setPathInfo(java.lang.String path)
Set the path information for this Request.

Specified by:
setPathInfo in interface org.apache.catalina.HttpRequest

getRequestPathMB

public org.apache.tomcat.util.buf.MessageBytes getRequestPathMB()
Get the request path.

Specified by:
getRequestPathMB in interface org.apache.catalina.HttpRequest

setRequestedSessionCookie

public void setRequestedSessionCookie(boolean flag)
Set a flag indicating whether or not the requested session ID for this request came in through a cookie.

Specified by:
setRequestedSessionCookie in interface org.apache.catalina.HttpRequest

setRequestedSessionId

public void setRequestedSessionId(java.lang.String id)
Set the requested session ID for this request.

Specified by:
setRequestedSessionId in interface org.apache.catalina.HttpRequest

setRequestedSessionURL

public void setRequestedSessionURL(boolean flag)
Set a flag indicating whether or not the requested session ID for this request came in through a URL.

Specified by:
setRequestedSessionURL in interface org.apache.catalina.HttpRequest

setRequestURI

public void setRequestURI(java.lang.String uri)
Set the unparsed request URI for this Request.

Specified by:
setRequestURI in interface org.apache.catalina.HttpRequest

setDecodedRequestURI

public void setDecodedRequestURI(java.lang.String uri)
Set the decoded request URI.

Specified by:
setDecodedRequestURI in interface org.apache.catalina.HttpRequest
Parameters:
uri - The decoded request URI

getDecodedRequestURI

public java.lang.String getDecodedRequestURI()
Get the decoded request URI.

Specified by:
getDecodedRequestURI in interface org.apache.catalina.HttpRequest

getDecodedRequestURIMB

public org.apache.tomcat.util.buf.MessageBytes getDecodedRequestURIMB()
Get the decoded request URI.

Specified by:
getDecodedRequestURIMB in interface org.apache.catalina.HttpRequest

getServletPathMB

public org.apache.tomcat.util.buf.MessageBytes getServletPathMB()
Get the servlet path.

Specified by:
getServletPathMB in interface org.apache.catalina.HttpRequest

setServletPath

public void setServletPath(java.lang.String path)
Set the servlet path for this Request.

Specified by:
setServletPath in interface org.apache.catalina.HttpRequest

setUserPrincipal

public void setUserPrincipal(java.security.Principal principal)
Set the Principal who has been authenticated for this Request.

Specified by:
setUserPrincipal in interface org.apache.catalina.HttpRequest

getAuthType

public java.lang.String getAuthType()
Get the Auth Type associated with this Request.

Specified by:
getAuthType in interface javax.servlet.http.HttpServletRequest

getCookies

public javax.servlet.http.Cookie[] getCookies()
Get cookies associated with this Request.

Specified by:
getCookies in interface javax.servlet.http.HttpServletRequest

getDateHeader

public long getDateHeader(java.lang.String name)
Return the Date Header with the specified name associated with this Request.

Specified by:
getDateHeader in interface javax.servlet.http.HttpServletRequest

getHeader

public java.lang.String getHeader(java.lang.String name)
Return the Header with the specified name associated with this Request.

Specified by:
getHeader in interface javax.servlet.http.HttpServletRequest

getHeaders

public java.util.Enumeration getHeaders(java.lang.String name)
Return the Header names with the specified name associated with this Request.

Specified by:
getHeaders in interface javax.servlet.http.HttpServletRequest

getHeaderNames

public java.util.Enumeration getHeaderNames()
Return the Header names associated with this Request.

Specified by:
getHeaderNames in interface javax.servlet.http.HttpServletRequest

getIntHeader

public int getIntHeader(java.lang.String name)
Return the Int Header with the specified name associated with this Request.

Specified by:
getIntHeader in interface javax.servlet.http.HttpServletRequest

getMethod

public java.lang.String getMethod()
Get the method associated with this Request.

Specified by:
getMethod in interface javax.servlet.http.HttpServletRequest

getPathInfo

public java.lang.String getPathInfo()
Get the Path Info associated with this Request.

Specified by:
getPathInfo in interface javax.servlet.http.HttpServletRequest

getPathTranslated

public java.lang.String getPathTranslated()
Get the Path Translated associated with this Request.

Specified by:
getPathTranslated in interface javax.servlet.http.HttpServletRequest

getContextPath

public java.lang.String getContextPath()
Get the Context Path associated with this Request.

Specified by:
getContextPath in interface javax.servlet.http.HttpServletRequest

getQueryString

public java.lang.String getQueryString()
Get the Query String associated with this Request.

Specified by:
getQueryString in interface javax.servlet.http.HttpServletRequest

getRemoteUser

public java.lang.String getRemoteUser()
Get the Remote User associated with this Request.

Specified by:
getRemoteUser in interface javax.servlet.http.HttpServletRequest

isUserInRole

public boolean isUserInRole(java.lang.String role)
Specified by:
isUserInRole in interface javax.servlet.http.HttpServletRequest

getUserPrincipal

public java.security.Principal getUserPrincipal()
Get the User Principal associated with this Request.

Specified by:
getUserPrincipal in interface javax.servlet.http.HttpServletRequest

getRequestedSessionId

public java.lang.String getRequestedSessionId()
Get the Requested SessionId associated with this Request.

Specified by:
getRequestedSessionId in interface javax.servlet.http.HttpServletRequest

getRequestURI

public java.lang.String getRequestURI()
Get the Requested URI associated with this Request.

Specified by:
getRequestURI in interface javax.servlet.http.HttpServletRequest

getRequestURL

public java.lang.StringBuffer getRequestURL()
Get the Requested URL associated with this Request.

Specified by:
getRequestURL in interface javax.servlet.http.HttpServletRequest

getServletPath

public java.lang.String getServletPath()
Get the Servlet Path associated with this Request.

Specified by:
getServletPath in interface javax.servlet.http.HttpServletRequest

getSession

public javax.servlet.http.HttpSession getSession()
Get the Http session associated with this Request.

Specified by:
getSession in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdValid

public boolean isRequestedSessionIdValid()
Specified by:
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdFromUrl

public boolean isRequestedSessionIdFromUrl()
Specified by:
isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequest

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Return the Character Encoding associated with this Request.

Specified by:
getCharacterEncoding in interface javax.servlet.ServletRequest

setCharacterEncoding

public void setCharacterEncoding(java.lang.String env)
                          throws java.io.UnsupportedEncodingException
Set the Character Encoding associated with this Request.

Specified by:
setCharacterEncoding in interface javax.servlet.ServletRequest
Throws:
java.io.UnsupportedEncodingException

getContentLength

public int getContentLength()
Return the Content Length associated with this Request.

Specified by:
getContentLength in interface javax.servlet.ServletRequest

getContentType

public java.lang.String getContentType()
Return the Content Type associated with this Request.

Specified by:
getContentType in interface javax.servlet.ServletRequest

getInputStream

public javax.servlet.ServletInputStream getInputStream()
                                                throws java.io.IOException
Return the servlet input stream for this Request.

Specified by:
getInputStream in interface javax.servlet.ServletRequest
Throws:
java.io.IOException

getParameter

public java.lang.String getParameter(java.lang.String name)
Return the parameter with the specified name

Specified by:
getParameter in interface javax.servlet.ServletRequest

getParameterNames

public java.util.Enumeration getParameterNames()
Return the parameter names

Specified by:
getParameterNames in interface javax.servlet.ServletRequest

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name)
Return the parameter values

Specified by:
getParameterValues in interface javax.servlet.ServletRequest

getParameterMap

public java.util.Map getParameterMap()
Returns a Map of the parameters of this request.

Specified by:
getParameterMap in interface javax.servlet.ServletRequest

getProtocol

public java.lang.String getProtocol()
Return the Protocol associated with this Request.

Specified by:
getProtocol in interface javax.servlet.ServletRequest

getScheme

public java.lang.String getScheme()
Return the scheme used to make this Request.

Specified by:
getScheme in interface javax.servlet.ServletRequest

getServerName

public java.lang.String getServerName()
Return the Server Name

Specified by:
getServerName in interface javax.servlet.ServletRequest

getServerPort

public int getServerPort()
Return the Server Port

Specified by:
getServerPort in interface javax.servlet.ServletRequest

getReader

public java.io.BufferedReader getReader()
                                 throws java.io.IOException
Read the Reader wrapping the input stream for this Request.

Specified by:
getReader in interface javax.servlet.ServletRequest
Throws:
java.io.IOException

getRemoteAddr

public java.lang.String getRemoteAddr()
Return the remote IP address making this Request.

Specified by:
getRemoteAddr in interface javax.servlet.ServletRequest

getRemoteHost

public java.lang.String getRemoteHost()
Return the remote host name making this Request.

Specified by:
getRemoteHost in interface javax.servlet.ServletRequest

getLocale

public java.util.Locale getLocale()
Return the preferred Locale that the client will accept content in, based on the value for the first Accept-Language header that was encountered. If the request did not specify a preferred language, the server's default Locale is returned.

Specified by:
getLocale in interface javax.servlet.ServletRequest

getLocales

public java.util.Enumeration getLocales()
Return the set of preferred Locales that the client will accept content in, based on the values for any Accept-Language headers that were encountered. If the request did not specify a preferred language, the server's default Locale is returned.

Specified by:
getLocales in interface javax.servlet.ServletRequest

isSecure

public boolean isSecure()
Specified by:
isSecure in interface javax.servlet.ServletRequest

getRequestDispatcher

public javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String path)
Return a RequestDispatcher that wraps the resource at the specified path, which may be interpreted as relative to the current request path.

Specified by:
getRequestDispatcher in interface javax.servlet.ServletRequest

getRealPath

public java.lang.String getRealPath(java.lang.String path)
Return the real path of the specified virtual path.

Specified by:
getRealPath in interface javax.servlet.ServletRequest