public class MockServletResponse
extends java.lang.Object
Constructor and Description |
---|
MockServletResponse() |
Modifier and Type | Method and Description |
---|---|
void |
addCookie(Cookie arg0) |
void |
addDateHeader(java.lang.String arg0,
long arg1) |
void |
addHeader(java.lang.String arg0,
java.lang.String arg1) |
void |
addIntHeader(java.lang.String arg0,
int arg1) |
boolean |
containsHeader(java.lang.String arg0) |
java.lang.String |
encodeRedirectUrl(java.lang.String arg0) |
java.lang.String |
encodeRedirectURL(java.lang.String arg0) |
java.lang.String |
encodeUrl(java.lang.String arg0) |
java.lang.String |
encodeURL(java.lang.String arg0) |
void |
flushBuffer() |
int |
getBufferSize() |
java.lang.String |
getCharacterEncoding() |
java.lang.String |
getContentType() |
java.lang.String |
getHeader(java.lang.String arg0) |
java.util.Collection<java.lang.String> |
getHeaderNames() |
java.util.Collection<java.lang.String> |
getHeaders(java.lang.String arg0) |
java.util.Locale |
getLocale() |
ServletOutputStream |
getOutputStream() |
int |
getStatus() |
java.io.PrintWriter |
getWriter() |
boolean |
isCommitted() |
void |
reset() |
void |
resetBuffer() |
void |
sendError(int arg0) |
void |
sendError(int arg0,
java.lang.String arg1) |
void |
sendRedirect(java.lang.String arg0) |
void |
setBufferSize(int arg0) |
void |
setCharacterEncoding(java.lang.String arg0) |
void |
setContentLength(int arg0) |
void |
setContentLengthLong(long arg0) |
void |
setContentType(java.lang.String arg0) |
void |
setDateHeader(java.lang.String arg0,
long arg1) |
void |
setHeader(java.lang.String arg0,
java.lang.String arg1) |
void |
setIntHeader(java.lang.String arg0,
int arg1) |
void |
setLocale(java.util.Locale arg0) |
void |
setStatus(int arg0) |
void |
setStatus(int arg0,
java.lang.String arg1) |
public void flushBuffer() throws java.io.IOException
java.io.IOException
public int getBufferSize()
public java.lang.String getCharacterEncoding()
public java.lang.String getContentType()
public java.util.Locale getLocale()
public ServletOutputStream getOutputStream() throws java.io.IOException
java.io.IOException
public java.io.PrintWriter getWriter() throws java.io.IOException
java.io.IOException
public boolean isCommitted()
public void reset()
public void resetBuffer()
public void setBufferSize(int arg0)
public void setCharacterEncoding(java.lang.String arg0)
public void setContentLength(int arg0)
public void setContentType(java.lang.String arg0)
public void setLocale(java.util.Locale arg0)
public void addCookie(Cookie arg0)
public void addDateHeader(java.lang.String arg0, long arg1)
public void addHeader(java.lang.String arg0, java.lang.String arg1)
public void addIntHeader(java.lang.String arg0, int arg1)
public boolean containsHeader(java.lang.String arg0)
public java.lang.String encodeRedirectURL(java.lang.String arg0)
public java.lang.String encodeRedirectUrl(java.lang.String arg0)
public java.lang.String encodeURL(java.lang.String arg0)
public java.lang.String encodeUrl(java.lang.String arg0)
public void sendError(int arg0) throws java.io.IOException
java.io.IOException
public void sendError(int arg0, java.lang.String arg1) throws java.io.IOException
java.io.IOException
public void sendRedirect(java.lang.String arg0) throws java.io.IOException
java.io.IOException
public void setDateHeader(java.lang.String arg0, long arg1)
public void setHeader(java.lang.String arg0, java.lang.String arg1)
public void setIntHeader(java.lang.String arg0, int arg1)
public void setStatus(int arg0)
public void setStatus(int arg0, java.lang.String arg1)
public java.lang.String getHeader(java.lang.String arg0)
public java.util.Collection<java.lang.String> getHeaderNames()
public java.util.Collection<java.lang.String> getHeaders(java.lang.String arg0)
public int getStatus()
public void setContentLengthLong(long arg0)