Related information:
"21-Day Learning Java Web Development"
Other methods of the Request object
The 1.request object can also be used to obtain HTTP headers and other information in addition to the request parameters.
method Return Value method Description
GetHeader (string name) string gets the header named name of the specified header
Getheadername () enumeration get all the header names
Getintheader (String name) int gets the header of the name of the title, with the contents returned as an integer type
Getdateheader (String name) long gets the header of the name of the title, and the content is returned as a date type
getcookies () cookies to obtain relevant cookies
Getcontextpath () String Gets the path to the context
GetMethod () String gets the way to submit a customer opportunity
getprotocol String gets the HTTP protocol used
getquerystring () string gets the requested strings
Getrequestedseesionid String Gets the session ID of the client
Getrequesturi () String gets the requested URL
getremoteaddr () String Gets the client IP address
getremotehost () String Gets the host name of the client
getrmoteport () int Gets the client host port number
getremoteusre () String Gets the client name
Java-jsp other methods for the request object of the built-in object