Class sun.server.http.HttpRequest
All Packages Class Hierarchy This Package Previous Next Index
Class sun.server.http.HttpRequest
java.lang.Object
|
+----sun.server.http.HttpRequest
- public class HttpRequest
- extends Object
- implements HttpServletRequest
This class represents an HTTP request.
-
getAuthType()
- Returns the access authorization type, or null if none.
-
getContentLength()
- Returns the content length for this request, or -1 if not known.
-
getContentType()
- Returns the content type for this request, or null if not known.
-
getDateHeader(String, long)
- Returns the value of a date header field.
-
getHeader(int)
- Returns the value of the nth header field, or null if there are
fewer than n fields.
-
getHeader(String)
- Returns the value of a header field, or null if not known.
-
getHeaderName(int)
- Returns the name of the nth header field, or null if there are
fewer than n fields.
-
getInputStream()
- Returns the input stream for this request.
-
getIntHeader(String, int)
- Returns the value of an integer header field.
-
getMethod()
- Returns the request method.
-
getParameter(String)
- Returns the query string parameter specified by name, or null if none.
-
getParameters()
- Returns a hash table of query string parameter values.
-
getPathInfo()
- Returns extra path information, or null if none.
-
getPathTranslated()
- Returns extra path information translated, or null if none.
-
getProtocol()
- Returns the protocol of the request.
-
getQueryString()
- Returns the query string, or null if none.
-
getRemoteAddr()
- Returns the IP address of the remote agent, or null if not known.
-
getRemoteHost()
- Returns the host name of the remote agent, or null if not known.
-
getRemoteUser()
- Returns the user name for this request, or null if not known.
-
getRequestPath()
- Returns the full request path (servlet path + path info)
-
getRequestURI()
- Returns the full request URI.
-
getServerName()
- Returns the host on which this request was received.
-
getServerPort()
- Returns the port on which this request was received.
-
getServletPath()
- Returns the servlet path.
getMethod
public String getMethod()
- Returns the request method.
getRequestURI
public String getRequestURI()
- Returns the full request URI.
getRequestPath
public String getRequestPath()
- Returns the full request path (servlet path + path info)
getServletPath
public String getServletPath()
- Returns the servlet path.
getPathInfo
public String getPathInfo()
- Returns extra path information, or null if none.
getPathTranslated
public String getPathTranslated()
- Returns extra path information translated, or null if none.
getQueryString
public String getQueryString()
- Returns the query string, or null if none.
getParameter
public String getParameter(String name)
- Returns the query string parameter specified by name, or null if none.
- Parameters:
- name - the parameter name
getParameters
public Hashtable getParameters()
- Returns a hash table of query string parameter values.
getProtocol
public String getProtocol()
- Returns the protocol of the request.
getContentLength
public int getContentLength()
- Returns the content length for this request, or -1 if not known.
getContentType
public String getContentType()
- Returns the content type for this request, or null if not known.
getRemoteHost
public String getRemoteHost()
- Returns the host name of the remote agent, or null if not known.
getRemoteAddr
public String getRemoteAddr()
- Returns the IP address of the remote agent, or null if not known.
getRemoteUser
public String getRemoteUser()
- Returns the user name for this request, or null if not known.
getAuthType
public String getAuthType()
- Returns the access authorization type, or null if none.
getServerPort
public int getServerPort()
- Returns the port on which this request was received.
getServerName
public String getServerName()
- Returns the host on which this request was received.
getInputStream
public ServletInputStream getInputStream()
- Returns the input stream for this request.
getHeader
public String getHeader(String name)
- Returns the value of a header field, or null if not known.
- Parameters:
- name - the header field name
getIntHeader
public int getIntHeader(String name,
int def)
- Returns the value of an integer header field.
- Parameters:
- name - the header field name
- def - the value to return if the field is unset or invalid.
getDateHeader
public long getDateHeader(String name,
long def)
- Returns the value of a date header field.
- Parameters:
- name - the header field name
- def - the value to return if the header is unset or invalid.
getHeaderName
public String getHeaderName(int n)
- Returns the name of the nth header field, or null if there are
fewer than n fields. This can be used to iterate through all the
headers in the message.
getHeader
public String getHeader(int n)
- Returns the value of the nth header field, or null if there are
fewer than n fields. This can be used to iterate through all the
headers in the message.
All Packages Class Hierarchy This Package Previous Next Index