| javax.servlet.http.HttpServletResponseWrapper org.apache.beehive.netui.pageflow.scoping.internal.ScopedResponseImpl
ScopedResponseImpl | public class ScopedResponseImpl extends HttpServletResponseWrapper implements ScopedResponse(Code) | | A wrapper around HttpServletResponse, associated with a given scope-key. Delegates to the wrapped
response object for some functionality, but prevents output or error codes or forwards from actually
happening.
|
Method Summary | |
public void | addCookie(Cookie cookie) Add a cookie to the response. | public void | addDateHeader(String name, long date) Adds a response header with the given name and date-value. | public void | addHeader(String name, String value) Adds a response header with the given name and value. | public void | addIntHeader(String name, int value) Adds a response header with the given name and integer value. | protected void | addObjectHeader(String name, Object val) | public void | applyRedirect() Actually send the redirect that was suggested by
ScopedResponseImpl.sendRedirect . | public boolean | containsHeader(String name) Returns true if this response containes the given header. | public boolean | didRedirect() | public Cookie | getCookie(String cookieName) Gets a cookie that was added to the response. | public Cookie[] | getCookies() Gets all Cookies that were added to the response. | public Object | getFirstHeader(String name) Gets the first header with the given name. | public Map | getHeaders() Gets all headers. | public List | getHeaders(String name) Gets all headers with the given name. | public HttpServletResponse | getOuterResponse() | public String | getRedirectURI() | public int | getStatusCode() | public String | getStatusMessage() | public boolean | isError() | public void | reset() | public void | resetBuffer() | public void | sendError(int i, String s) | public void | sendError(int i) | public void | sendRedirect(String redirectURI) | public void | setBufferSize(int i) | public void | setContentLength(int i) | public void | setContentType(String s) | public void | setDateHeader(String name, long date) Sets a response header with the given name and date-value. | public void | setHeader(String name, String value) Sets a response header with the given name and value. | public void | setIntHeader(String name, int value) Sets a response header with the given name and integer value. | protected void | setObjectHeader(String name, Object val) | public void | setStatus(int i) | public void | setStatus(int i, String s) |
addCookie | public void addCookie(Cookie cookie)(Code) | | Add a cookie to the response.
|
addDateHeader | public void addDateHeader(String name, long date)(Code) | | Adds a response header with the given name and date-value.
|
addHeader | public void addHeader(String name, String value)(Code) | | Adds a response header with the given name and value.
|
addIntHeader | public void addIntHeader(String name, int value)(Code) | | Adds a response header with the given name and integer value.
|
containsHeader | public boolean containsHeader(String name)(Code) | | Returns true if this response containes the given header.
|
didRedirect | public boolean didRedirect()(Code) | | |
getCookie | public Cookie getCookie(String cookieName)(Code) | | Gets a cookie that was added to the response.
|
getCookies | public Cookie[] getCookies()(Code) | | Gets all Cookies that were added to the response.
|
getFirstHeader | public Object getFirstHeader(String name)(Code) | | Gets the first header with the given name.
an Object (String, Integer, Date, Cookie) that is the first header with the given name,or null if none is found. |
getHeaders | public Map getHeaders()(Code) | | Gets all headers.
a Map of header-name (String) -> headers (List). |
getHeaders | public List getHeaders(String name)(Code) | | Gets all headers with the given name.
a List of headers (String, Integer, Date, Cookie), or null if none are found. |
getStatusCode | public int getStatusCode()(Code) | | |
isError | public boolean isError()(Code) | | |
reset | public void reset()(Code) | | |
resetBuffer | public void resetBuffer()(Code) | | |
setBufferSize | public void setBufferSize(int i)(Code) | | |
setContentLength | public void setContentLength(int i)(Code) | | |
setDateHeader | public void setDateHeader(String name, long date)(Code) | | Sets a response header with the given name and date-value.
|
setHeader | public void setHeader(String name, String value)(Code) | | Sets a response header with the given name and value.
|
setIntHeader | public void setIntHeader(String name, int value)(Code) | | Sets a response header with the given name and integer value.
|
setStatus | public void setStatus(int i)(Code) | | |
|
|