Java-jsp other methods for the request object of the built-in object

Source: Internet
Author: User
Tags java web

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.