Method Summary |
|
public void | addCookie(Cookie cookie) |
public void | addDateHeader(String aName, long aDate) Adds a Date as header. |
public void | addHeader(String aKey, String aValue) Adds a header. |
public void | addIntHeader(String aName, int aValue) Adds an int as header. |
public void | close() Closes the writer or
JoOutputStream . |
public boolean | containsHeader(String headerKey) Checks whether a certain header is set. |
public String | encodeRedirectURL(String aUrl) |
public String | encodeRedirectUrl(String aUrl) |
public String | encodeURL(String url) |
public String | encodeUrl(String aUrl) |
public void | flushBuffer() Commits this response. |
public int | getBufferSize() Returns the actual buffer size. |
public String | getCharacterEncoding() Return the encoding of the current content type. |
public long | getDateHeader(String aName) Returns a header as date (long ). |
public String | getHeader(String aKey) Returns a headervalue as string, or nullif it has not been set. |
public Enumeration | getHeaderNames() Returns an enumeration of the headernames. |
public int | getIntHeader(String aName) Returns a header as int . |
public ServletOutputStream | getInternalOutputStream() Returns an internal ServletOutputStream . |
public Locale | getLocale() Returns the locale. |
public ServletOutputStream | getOutputStream() Returns a ServletOutputStream . |
public int | getSentBodyBytes() Returns how many bytes were sent. |
public int | getStatus() Returns the current HTTP status. |
public PrintWriter | getWriter() Returns a PrintWriter . |
public void | init() Initializes this response. |
public boolean | isCommitted() Indicates whether the the response has been committed yet, i.e. |
public void | reset() Resets the response, including the headers. |
public void | resetBuffer() Resets the response, without resetting any headers. |
public void | sendError(Exception exception, String servletName) Sends an error message to the client. |
public void | sendError(int aCode, String aMessage) Sends an error message to the client. |
public void | sendError(int code) Sends an errormessage to the client. |
public void | sendRedirect(String aLocation) Sends a SC_MOVED_TEMPORARILY to the client. |
public void | setBufferSize(int size) Sets the buffer size for this response. |
public void | setContentLength(int len) Sets the length of the body. |
public void | setContentType(String aType) Sets the Content-Type. |
public void | setDateHeader(String aName, long aDate) Sets a Date as header. |
public void | setForceClose(boolean forceClose) |
public void | setHeader(String aKey, String aValue) Sets a header. |
public void | setIntHeader(String aName, int aValue) Sets an int as header. |
public void | setLocale(Locale locale) Sets the locale. |
public void | setRequest(I_JoServletRequest request) Sets the associated request. |
public void | setServletContextPeer(I_JoServletContextPeer peer) Sets the peer that belongs to this response. |
public void | setSocket(Socket socket) Sets the socket for this response. |
public void | setStatus(int aCode, String aMessage) Sets the HTTP statuscode. |
public void | setStatus(int aCode) Sets the statuscode. |
public void | writeHeaders() Writes the headers if they have not been written yet. |