Java Reference
In-Depth Information
It has one parameter:
•
int
It throws this exception:
•
java.io.IOException
The
sendRedirect()
Method
public void sendRedirect(java.lang.String url)
throws java.io.IOException
C
The
sendRedirect()
method redirects the client to the passed-in URL, which must be an
absolute URL.
sendRedirect()
returns no value.
It has one parameter:
•
java.lang.String
It throws this exception:
•
java.io.IOException
The
setDateHeader()
Method
public void setDateHeader(java.lang.String name,
long date)
The
setDateHeader()
method adds a name/date-value field to the response header. The date
value is a
long
representing milliseconds since the epoch.
setDateHeader()
returns no value
and throws no exception.
It has two parameters:
•
java.lang.String
•
long
The
setIntHeader()
Method
public void setIntHeader(java.lang.String name,
int value)
The
setIntHeader()
method adds a name/
int
-value field to the response header. If the field is
already present in the request, it is replaced.
setIntHeader()
returns no value and throws no
exceptions.
It has two parameters:
•
java.lang.String
•
int