Interface HttpServletRequest
Package javax.servlet.httppublic interface HttpServletRequest
extends ServletRequest
Extends the ServletRequest interface to provide request information for HTTP servlets.
The servlet container creates an HttpServletRequest object and passes it as an argument to the servlet's service methods.
Interface HttpServletRequest Field
Field Summary |
---|
static java.lang.String | BASIC_AUTH String identifier for Basic authentication. |
static java.lang.String | CLIENT_CERT_AUTH String identifier for Client Certificate authentication. |
static java.lang.String | DIGEST_AUTH String identifier for Digest authentication. |
static java.lang.String | FORM_AUTH String identifier for Form authentication. |
Interface HttpServletRequest Method
Method Summary |
---|
java.lang.String | getAuthType() Returns the name of the authentication scheme used to protect the servlet. |
java.lang.String | getContextPath() Returns the portion of the request URI that indicates the context of the request. |
Cookie[] | getCookies() Returns an array containing all of the Cookie objects the client sent with this request. |
long | getDateHeader(java.lang.String name) Returns the value of the specified request header as a long value that represents a Date object. |
java.lang.String | getHeader(java.lang.String name) Returns the value of the specified request header as a String. |
java.util.Enumeration | getHeaderNames() Returns an enumeration of all the header names this request contains. |
java.util.Enumeration | getHeaders(java.lang.String name) Returns all the values of the specified request header as an Enumeration of String objects. |
int | getIntHeader(java.lang.String name) Returns the value of the specified request header as an int. |
java.lang.String | getMethod() Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT. |
java.lang.String | getPathInfo() Returns any extra path information associated with the URL the client sent when it made this request. |
References By : tomcat.apache
« Privious Post »
« Next Post »
share on : :
Love to hear your Views / Guidance / Recommendations on this Post…