![]() |
![]() The servlet response object is reflected directly from the servlet interface, so all the functions listed in the servlet javadoc are available and that is the definitive reference. In particular, we haven't listed all the error code response
constants from that class, e.g. Resin has added the
Sets the status code for the response.
Note: setStatus must preceed writing to the response.
Sets the value of the named header.
Note: setHeader must preceed writing to the response.
Redirect the client to the given url.
Note: sendRedirect must preceed writing to the response.
Encodes the redirect url if necessary for session tracking.
Session tracking for cookie-ignorant browsers requires this.
Encodes the url if necessary for session tracking. Session
tracking for cookie-ignorant browsers requires this.
All urls sent to the client should go through this.
Sends an error response to the client. If the message is not given,
it will send a default message.
Note: sendError must preceed writing to the response.
Returns true if the named header has already been set.
Sets the value of the named header as an integer.
Note: setIntHeader must preceed writing to the response.
Sets the value of the named header as an numeric time.
Note: setDateHeader must preceed writing to the response.
Adds the cookie to the response.
Note: addCookie must preceed writing to the response.
Sets the content length for the response.
Sets the content type, i.e. mime-type and encoding for the response.
This read-only property returns either the encoding set by
setContentType or an encoding the client understands.
Writes a string to the response.
Writes a string with a linefeed.
Writes formatted output using printf.
Flushes any buffered output.
Returns a JDK OutputStream for writing responses.
Returns a JDK Writer for writing responses.
|