Java Reference
In-Depth Information
It has one parameter:
•
java.lang.String
It returns this value:
•
java.lang.String
The
encodeRedirectURL()
Method
public java.lang.String encodeRedirectURL(java.lang.String url)
The
encodeRedirectURL()
method's URL encodes the passed-in string for use in the
sendRedirect()
method. If no changes are necessary, it simply returns the string.
encodeRedirectURL()
throws no exceptions.
It has one parameter:
•
java.lang.String
It returns this value:
•
java.lang.String
The
sendError(int sc, java.lang.String message)
Method
public void sendError(int sc,
java.lang.String message)
throws java.io.IOException
This
sendError()
method sends an error to the client in the response object. The error consists
of the
int
status code and a string message.
sendError()
returns no value.
It has two parameters:
•
int
•
java.lang.String
It throws this exception:
•
java.io.IOException
The
sendError(int sc)
Method
public void sendError(int sc)
throws java.io.IOException
This
sendError()
method sends an error to the client in the response object. The error consists
of only the
int
status code.
sendError()
returns no value.