Java Reference
In-Depth Information
The getRemoteUser() method returns the name of the user making the request. If the name is
not available, null is returned. It is the same as the CGI variable REMOTE_USER .
getRemoteUser() has no parameters and throws no exceptions.
It returns this value:
java.lang.String
The getRequestedSessionId() Method
public java.lang.String getRequestedSessionId()
The getRequestedSessionId() method returns the session ID associated with the request.
getRequestedSessionId() has no parameters and throws no exceptions.
It returns this value:
java.lang.String
The getRequestURI() Method
public java.lang.String getRequestURI()
The getRequestURI() method returns the first line of the request's URI. This is the part of the
URI that is found to the left of the query string. getRequestURI() has no parameters and
throws no exceptions.
It returns this value:
java.lang.String
The getUserPrincipal() Method
public java.security.Principal getUserPrincipal()
The getUserPrincipal() method returns the principal of the user making the request.
getUserPrincipal() has no parameters and throws no exceptions.
It returns this value:
java.security.Principal
The getServletPath() Method
public java.lang.String getServletPath()
The getServletPath() method returns the part of the URI that refers to the servlet being
invoked. getServletPath() has no parameters and throws no exceptions.
It returns this value:
java.lang.String
Search WWH ::




Custom Search