Java Reference
In-Depth Information
The
getServerPort()
method returns an integer representing the port number on which the
request was received. It is the same as the CGI variable
SERVER_PORT
.
getServerPort()
has
no parameters and throws no exceptions.
It returns this value:
•
int
The
getReader()
Method
public java.io.BufferedReader getReader()
throws java.io.IOException
The
getReader()
method returns a
BufferedReader
for reading text input from the request
body.
getReader()
has no parameters.
It returns this value:
•
java.io.BufferedReader
It throws this exception:
•
java.io.IOException
The
getRemoteAddress()
Method
public java.lang.String getRemoteAddress()
The
getRemoteAddress()
method returns a string representing the IP address of the client
sending the request. It is the same as the CGI variable
REMOTE_ADDR
.
getRemoteAddress()
has
no parameters and throws no exceptions.
It returns this value:
•
java.lang.String
The
getRemoteHost()
Method
public java.lang.String getRemoteHost()
The
getRemoteHost()
method returns a string representing the qualified hostname of the client
sending the request. It is the same as the CGI variable
REMOTE_HOST
.
getRemoteHost()
has no
parameters and throws no exceptions.
It returns this value:
•
java.lang.String
The
isSecure()
Method
public boolean isSecure()