| |
|
| java.lang.Object org.directwebremoting.util.FakeHttpServletResponse
FakeHttpServletResponse | public class FakeHttpServletResponse implements HttpServletResponse(Code) | | Mock implementation of the HttpServletResponse interface.
author: Rod Johnson author: Juergen Hoeller author: Joe Walker [joe at getahead dot ltd dot uk] |
addDateHeader | public void addDateHeader(String name, long value)(Code) | | |
addIntHeader | public void addIntHeader(String name, int value)(Code) | | |
containsHeader | public boolean containsHeader(String name)(Code) | | |
flushBuffer | public void flushBuffer()(Code) | | |
getBufferSize | public int getBufferSize()(Code) | | |
getCharacterEncoding | public String getCharacterEncoding()(Code) | | |
getContentAsByteArray | public byte[] getContentAsByteArray()(Code) | | Accessor for the content of output body
A byte array of the output body |
getContentLength | public int getContentLength()(Code) | | Accessor for the content length of the output
The content length of the output |
getCookie | public Cookie getCookie(String name)(Code) | | Get a cookie by a given name
Parameters: name - The name of the cookie to fetch A matching cookie or null if there was no match |
getCookies | public Cookie[] getCookies()(Code) | | Accessor for the array of current cookies
The current set of output cookies |
getForwardedUrl | public String getForwardedUrl()(Code) | | What URL are we forwarding to?
What URL are we forwarding to? |
getHeader | public Object getHeader(String name)(Code) | | Accessor for a header by a given name
Parameters: name - The header name to lookup The data behind this header |
getHeaderNames | public Set<String> getHeaderNames()(Code) | | Accessor for the current set of headers
The current set of headers |
getHeaders | public List<Object> getHeaders(String name)(Code) | | If there are multiple values for a given header, get them as a list
Parameters: name - The header name to lookup The data behind this header |
getIncludedUrl | public String getIncludedUrl()(Code) | | What URL are we including?
What URL are we including? |
getStatus | public int getStatus()(Code) | | What HTTP status code should be returned?
The current http status code |
isCommitted | public boolean isCommitted()(Code) | | |
reset | public void reset()(Code) | | |
resetBuffer | public void resetBuffer()(Code) | | |
setBufferSize | public void setBufferSize(int bufferSize)(Code) | | |
setCharacterEncoding | public void setCharacterEncoding(String characterEncoding)(Code) | | |
setCommitted | public void setCommitted(boolean committed)(Code) | | Parameters: committed - Set the comitted flag |
setContentLength | public void setContentLength(int contentLength)(Code) | | |
setContentType | public void setContentType(String contentType)(Code) | | |
setDateHeader | public void setDateHeader(String name, long value)(Code) | | |
setForwardedUrl | public void setForwardedUrl(String forwardedUrl)(Code) | | What URL are we forwarding to?
Parameters: forwardedUrl - What URL are we forwarding to? |
setIncludedUrl | public void setIncludedUrl(String includedUrl)(Code) | | What URL are we including?
Parameters: includedUrl - What URL are we including? |
setIntHeader | public void setIntHeader(String name, int value)(Code) | | |
setStatus | public void setStatus(int status)(Code) | | |
setStatus | public void setStatus(int status, String errorMessage)(Code) | | |
|
|
|