| java.lang.Object org.apache.struts.mock.MockHttpServletResponse
MockHttpServletResponse | public class MockHttpServletResponse implements HttpServletResponse(Code) | | Mock HttpServletResponse object for low-level unit
tests of Struts controller components. Coarser grained tests should be
implemented in terms of the Cactus framework, instead of the mock object
classes.
WARNING - Only the minimal set of methods needed to
create unit tests is provided, plus additional methods to configure this
object as necessary. Methods for unsupported operations will throw
UnsupportedOperationException .
WARNING - Because unit tests operate in a single
threaded environment, no synchronization is performed.
version: $Rev: 471754 $ $Date: 2005-05-07 12:11:38 -0400 (Sat, 07 May 2005) version: $ |
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) | | |
isCommitted | public boolean isCommitted()(Code) | | |
reset | public void reset()(Code) | | |
resetBuffer | public void resetBuffer()(Code) | | |
sendError | public void sendError(int status)(Code) | | |
sendError | public void sendError(int status, String message)(Code) | | |
setBufferSize | public void setBufferSize(int size)(Code) | | |
setContentLength | public void setContentLength(int length)(Code) | | |
setDateHeader | public void setDateHeader(String name, long value)(Code) | | |
setIntHeader | public void setIntHeader(String name, int value)(Code) | | |
setStatus | public void setStatus(int status)(Code) | | |
setStatus | public void setStatus(int status, String message)(Code) | | |
|
|