Example usage for Java com.vaadin.server VaadinResponse fields, constructors, methods, implement or subclass
The text is from its open source code.
OutputStream | getOutputStream() Returns a OutputStream for writing binary data in the response. |
PrintWriter | getWriter() Returns a PrintWriter object that can send character text to the client. |
void | sendError(int errorCode, String message) Sends an error response to the client using the specified status code and clears the buffer. |
void | setCacheTime(long milliseconds) Sets cache time in milliseconds, -1 means no cache at all. |
void | setContentType(String contentType) Sets the content type of this response. |
void | setDateHeader(String name, long timestamp) Properly formats a timestamp as a date header. |
void | setHeader(String name, String value) Sets the value of a generic response header. |
void | setStatus(int statusCode) Sets the (http) status code for the response. |