Java Reference
In-Depth Information
The
getMethod()
Method
public java.lang.String getMethod()
The
getMethod()
method returns the HTTP method used by the client request. It is the same
as the CGI variable
REQUEST_METHOD
.
getMethod()
has no parameters and throws no excep-
tions.
It returns this value:
•
java.lang.String
C
getPathInfo()
Method
public java.lang.String getPathInfo()
The
getPathInfo()
method returns a string containing any additional path information follow-
ing the servlet path, but preceding the query string. It is the same as the CGI variable
PATH_INFO
.
getPathInfo()
has no parameters and throws no exceptions.
It returns this value:
•
java.lang.String
The
getPathTranslated()
Method
public java.lang.String getPathTranslated()
The
getPathTranslated()
method returns the same information as the
getPathInfo()
method, but translates the path to its real path name before returning it. It is the same as the
CGI variable
PATH_TRANSLATED
.
getPathTranslated()
has no parameters and throws no
exceptions.
It returns this value:
•
java.lang.String
getQueryString()
Method
public java.lang.String getQueryString()
The
getQueryString()
method returns the query string from the request. It is the same as the
CGI variable
QUERY_STRING
.
getQueryString()
has no parameters and throws no exceptions.
It returns this value:
•
java.lang.String
The
getRemoteUser()
Method
public java.lang.String getRemoteUser()