|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object used to access HTTP request data for debugging purposes.
Method Summary | |
java.lang.String |
getAuthType()
Returns the authentication scheme of the request, or null if none. |
int |
getContentLength()
Returns the size of the request entity data, or -1 if not known. |
java.lang.String |
getContentType()
Returns the Internet Media Type of the request entity data, or null if not known. |
javax.servlet.http.Cookie[] |
getCookies()
Returns an array of cookies for this request, or a 0 length array if no cookies exist. |
java.lang.String |
getHeader(java.lang.String name)
Returns the values of the specified header. |
java.util.Enumeration |
getHeaderNames()
Returns the strings representing the header names for this request. |
java.lang.String |
getMethod()
Returns the method with which the request was made. |
java.util.Enumeration |
getParameterNames()
Returns the parameter names for this request as an array of strings, or a 0 length array if no parameters exist. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns the values of the specified query parameter for the request as an array of strings, or a 0 length array if the named parameter does not exist. |
java.lang.String |
getPathInfo()
Returns optional extra path information following the presentation path, but immediately preceding the query string. |
java.lang.String |
getPathTranslated()
Returns extra path information translated to a real path. |
java.lang.String |
getProtocol()
Returns the protocol and version of the request as a string of the form <protocol>/<major version>.<minor
version> . |
java.lang.String |
getQueryString()
Returns the query string part of the presentation URI, or null if none. |
java.lang.String |
getRemoteAddr()
Returns the IP address of the agent that sent the request. |
java.lang.String |
getRemoteHost()
Returns the fully qualified host name of the agent that sent the request. |
java.lang.String |
getRemoteUser()
Returns the name of the user making this request, or null if not known. |
java.lang.String |
getRequestURI()
Returns the request URI. |
java.lang.String |
getScheme()
Returns the scheme of the URL used in this request, for example "http", "https", or "ftp". |
java.lang.String |
getServerName()
Returns the host name of the server that received the request. |
int |
getServerPort()
Returns the port number on which this request was received. |
int |
getTotalBytes()
Returns the number of bytes associated with the request. |
Method Detail |
public int getContentLength() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String getContentType() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String getProtocol() throws java.lang.Exception
<protocol>/<major version>.<minor
version>
.
java.lang.Exception
- if an error occurs.public java.lang.String getScheme()
public java.lang.String getServerName()
public int getServerPort()
public java.lang.String getRemoteAddr() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String getRemoteHost() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String[] getParameterValues(java.lang.String name) throws java.lang.Exception
name
- the name of the parameter whose value is required.
java.lang.Exception
- if an error occurs.public java.util.Enumeration getParameterNames() throws java.lang.Exception
java.lang.Exception
public java.lang.String getMethod() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String getRequestURI() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String getPathInfo() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String getPathTranslated() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String getQueryString() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String getRemoteUser() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String getAuthType() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public javax.servlet.http.Cookie[] getCookies() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public java.lang.String getHeader(java.lang.String name) throws java.lang.Exception
name
- the case-insensitive header field name
java.lang.Exception
- if an error occurs.public java.util.Enumeration getHeaderNames() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public int getTotalBytes()
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |