|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.connector.Request
org.enhydra.servlet.connectionMethods.EnhydraDirector.DirectorRequest
Enhydra Director implementation of the request.
Field Summary | |
protected EnhydraDirectorConnection |
connection
|
protected org.apache.catalina.connector.Response |
wrapedResponse
|
Fields inherited from class org.apache.catalina.connector.Request |
attributes, authType, CACHED_POST_LEN, connector, context, cookies, cookiesParsed, coyoteRequest, defaultLocale, dispatcherType, facade, filterChain, formats, GMT_ZONE, info, inputBuffer, inputStream, localAddr, locales, localesParsed, localName, localPort, mappingData, parameterMap, parametersParsed, postData, reader, remoteAddr, remoteHost, remotePort, requestDispatcherPath, requestedSessionCookie, requestedSessionId, requestedSessionURL, response, secure, session, sessionParsed, sm, subject, URIConverter, userPrincipal, usingInputStream, usingReader, wrapper |
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 |
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 |
clearParameters()
Clear the collection of parameters associated with this Request. |
protected void |
configureSessionCookie(javax.servlet.http.Cookie cookie)
|
javax.servlet.ServletInputStream |
createInputStream()
Create and return a ServletInputStream to read the content associated with this Request. |
void |
decodeURL()
|
protected org.apache.catalina.Session |
doGetSession(boolean create)
Return the session associated with this Request, creating one if necessary and requested. |
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. |
int |
getContentLength()
Return the Content Length associated with this Request. |
java.lang.String |
getContentType()
Return the Content Type associated with this Request. |
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()
|
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. |
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.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. |
java.lang.String |
getMethod()
Get the method associated with this Request. |
java.lang.String |
getParameter(java.lang.String name)
Return the parameter with the specified name |
java.util.Enumeration |
getParameterNames()
Return the parameter names |
java.lang.String[] |
getParameterValues(java.lang.String name)
Return the parameter values |
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 |
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. |
java.lang.String |
getRequestedSessionId()
|
java.lang.String |
getRequestURI()
Get the Requested URI associated with this Request. |
java.lang.StringBuffer |
getRequestURL()
Get the Requested URL associated with this Request. |
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 |
javax.servlet.http.HttpSession |
getSession(boolean create)
|
org.apache.catalina.Session |
getSessionInternal()
|
org.apache.catalina.Session |
getSessionInternal(boolean create)
|
java.io.InputStream |
getStream()
Return the input stream associated with this Request. |
boolean |
isRequestedSessionIdFromCookie()
|
boolean |
isRequestedSessionIdFromURL()
Return true if the session identifier included in this
request came from the request URI. |
boolean |
isRequestedSessionIdValid()
|
void |
obtainSessionId()
|
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 |
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 |
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 |
setDecodedRequestURI(java.lang.String uri)
Set the decoded request URI. |
void |
setMethod(java.lang.String method)
Set the HTTP request method used 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)
Return true if the session identifier included in this
request came from a cookie. |
void |
setRequestedSessionId(java.lang.String id)
|
void |
setRequestedSessionURL(boolean flag)
|
void |
setRequestURI(java.lang.String uri)
Set the unparsed request URI for this Request. |
void |
setScheme(java.lang.String scheme)
Set the name of the scheme associated with this request. |
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 |
setStream(java.io.InputStream stream)
Set the input stream associated with this Request. |
void |
setUserPrincipal(java.security.Principal principal)
|
Methods inherited from class org.apache.catalina.connector.Request |
addLocale, clearLocales, getConnector, getContext, getContextPath, getContextPathMB, getCoyoteRequest, getDecodedRequestURIMB, getFilterChain, getHost, getLocale, getLocales, getMappingData, getNote, getNoteNames, getParameterMap, getPathInfo, getPathInfoMB, getPathTranslated, getPrincipal, getRealPath, getRequest, getRequestDispatcher, getRequestPathMB, getResponse, getServletPath, getServletPathMB, getSession, getURIConverter, getUserPrincipal, getWrapper, isRequestedSessionIdFromUrl, isSecure, isUserInRole, parseCookies, parseLocales, parseLocalesHeader, parseParameters, readPostBody, removeNote, setConnector, setContext, setContextPath, setCookies, setCoyoteRequest, setFilterChain, setHost, setNote, setPathInfo, setRemoteHost, setResponse, setSecure, setServletPath, setURIConverter, setWrapper |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected EnhydraDirectorConnection connection
protected org.apache.catalina.connector.Response wrapedResponse
Constructor Detail |
public DirectorRequest(EnhydraDirectorConnection req)
Method Detail |
public java.lang.Object getAttribute(java.lang.String name)
public void setAttribute(java.lang.String name, java.lang.Object value)
public void removeAttribute(java.lang.String name)
public java.util.Enumeration getAttributeNames()
public int getLocalPort()
public int getRemotePort()
public java.lang.String getLocalAddr()
public void setUserPrincipal(java.security.Principal principal)
public java.lang.String getLocalName()
public void setRequestedSessionCookie(boolean flag)
true
if the session identifier included in this
request came from a cookie.
public void setRequestedSessionId(java.lang.String id)
public void setRequestedSessionURL(boolean flag)
public java.lang.String getRequestedSessionId()
public boolean isRequestedSessionIdFromCookie()
public boolean isRequestedSessionIdFromURL()
true
if the session identifier included in this
request came from the request URI.
protected org.apache.catalina.Session doGetSession(boolean create)
public org.apache.catalina.Session getSessionInternal()
public org.apache.catalina.Session getSessionInternal(boolean create)
public javax.servlet.http.HttpSession getSession(boolean create)
protected void configureSessionCookie(javax.servlet.http.Cookie cookie)
public void obtainSessionId()
public void decodeURL()
public java.lang.String getAuthorization()
public void setAuthorization(java.lang.String authorization)
public java.lang.String getInfo()
public java.io.InputStream getStream()
public void setStream(java.io.InputStream stream)
public javax.servlet.ServletInputStream createInputStream() throws java.io.IOException
java.io.IOException
public void finishRequest() throws java.io.IOException
java.io.IOException
public void recycle()
public void setContentLength(int length)
public void setContentType(java.lang.String type)
public void setProtocol(java.lang.String protocol)
public void setRemoteAddr(java.lang.String remote)
public void setScheme(java.lang.String scheme)
public void setServerName(java.lang.String name)
public void setServerPort(int port)
port
- The server portpublic void addCookie(javax.servlet.http.Cookie cookie)
public void addHeader(java.lang.String name, java.lang.String value)
public void addParameter(java.lang.String name, java.lang.String[] values)
public void clearCookies()
public void clearHeaders()
public void clearParameters()
public void setAuthType(java.lang.String type)
public void setMethod(java.lang.String method)
public void setQueryString(java.lang.String query)
public void setRequestURI(java.lang.String uri)
public java.lang.String getDecodedRequestURI()
public void setDecodedRequestURI(java.lang.String uri)
uri
- The decoded request URIpublic java.lang.String getAuthType()
public javax.servlet.http.Cookie[] getCookies()
public long getDateHeader(java.lang.String name)
public java.lang.String getHeader(java.lang.String name)
public java.util.Enumeration getHeaders(java.lang.String name)
public java.util.Enumeration getHeaderNames()
public int getIntHeader(java.lang.String name)
public java.lang.String getMethod()
public java.lang.String getQueryString()
public java.lang.String getRemoteUser()
public java.lang.String getRequestURI()
public java.lang.StringBuffer getRequestURL()
public boolean isRequestedSessionIdValid()
public java.lang.String getCharacterEncoding()
public void setCharacterEncoding(java.lang.String env) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public int getContentLength()
public java.lang.String getContentType()
public javax.servlet.ServletInputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.lang.String getParameter(java.lang.String name)
public java.util.Enumeration getParameterNames()
public java.lang.String[] getParameterValues(java.lang.String name)
public java.lang.String getProtocol()
public java.lang.String getScheme()
public java.lang.String getServerName()
public int getServerPort()
public java.io.BufferedReader getReader() throws java.io.IOException
java.io.IOException
public java.lang.String getRemoteAddr()
public java.lang.String getRemoteHost()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |