The HTTP response to the client terminal/browser.
Methods
ADds the specified cookie to response.
It can be calle multiple times to set more than
one cookie.
Encodes and returns HttpSession parameters to given url.
| Parameters |
url -
|
| Returns |
encoded url |
Flushes any pending data to client, including status code and headers
| Throws |
IOError -
If an IO error occurs
|
Returns the output stream suitable for writing data to the response.
| Throws |
IOError -
If an IO error occurs
|
Sends an errors response to client using specified status code
and message. After this method is called response is considered committed
and should be written to.
| Parameters |
code -
HTTP error response code
message -
Optional message, if not given, default
messages are used.
|
| Throws |
IOError -
If an IO error occurs
|
Creates temporary redirection (302) to given url.
| Throws |
IOError -
If an IO error occurs
|
Sets the content length.
| Parameters |
contentLength -
Length of content
|
Sets the content type.
| Parameters |
contentType -
Mime type of content
|
Sets the value of given response header.
| Parameters |
name -
name
stringvalue -
string value
intvalue -
int value value
|
Sets the status of response when there is not error.
| Parameters |
code -
HTTP response code
|