Example usage for Java org.apache.wicket.request.http WebResponse fields, constructors, methods, implement or subclass
The text is from its open source code.
Duration | MAX_CACHE_DURATION Recommended value for cache duration |
void | addCookie(final Cookie cookie) Add a cookie to the web response |
void | addHeader(String name, String value) Add a value to the servlet response stream. |
void | clearCookie(final Cookie cookie) Convenience method for clearing a cookie. |
void | disableCaching() Make this response non-cacheable |
void | flush() Flushes the response. |
Object | getContainerResponse() Provides access to the low-level container response object that implementaion of this Response delegate to. |
OutputStream | getOutputStream() Returns an OutputStream suitable for writing binary data in the response. |
void | reset() Called when the Response needs to reset itself. |
void | sendError(int sc, String msg) Send error status code with optional message. |
void | sendRedirect(String url) Redirects the response to specified URL. |
void | setAttachmentHeader(final String filename) Convenience method for setting the content-disposition:attachment header. |
void | setContentLength(final long length) Set the content length on the response, if appropriate in the subclass. |
void | setContentType(final String mimeType) Set the content type on the response, if appropriate in the subclass. |
void | setDateHeader(String name, Time date) Set a header to the date value in the servlet response stream. |
void | setHeader(String name, String value) Set a header to the string value in the servlet response stream. |
void | setLastModifiedTime(final Time time) Set the contents last modified time, if appropriate in the subclass. |
void | setStatus(int sc) Sets the status code for this response. |
void | write(byte[] array, int offset, int length) Writes the buffer to output. |
void | write(CharSequence sequence) Writes the CharSequence to output. |