Class Overview
Mock implementation of HttpServletResponse
Summary
[Expand]
Inherited Constants |
From interface
javax.servlet.http.HttpServletResponse
int |
SC_ACCEPTED |
|
int |
SC_BAD_GATEWAY |
|
int |
SC_BAD_REQUEST |
|
int |
SC_CONFLICT |
|
int |
SC_CONTINUE |
|
int |
SC_CREATED |
|
int |
SC_EXPECTATION_FAILED |
|
int |
SC_FORBIDDEN |
|
int |
SC_FOUND |
|
int |
SC_GATEWAY_TIMEOUT |
|
int |
SC_GONE |
|
int |
SC_HTTP_VERSION_NOT_SUPPORTED |
|
int |
SC_INTERNAL_SERVER_ERROR |
|
int |
SC_LENGTH_REQUIRED |
|
int |
SC_METHOD_NOT_ALLOWED |
|
int |
SC_MOVED_PERMANENTLY |
|
int |
SC_MOVED_TEMPORARILY |
|
int |
SC_MULTIPLE_CHOICES |
|
int |
SC_NON_AUTHORITATIVE_INFORMATION |
|
int |
SC_NOT_ACCEPTABLE |
|
int |
SC_NOT_FOUND |
|
int |
SC_NOT_IMPLEMENTED |
|
int |
SC_NOT_MODIFIED |
|
int |
SC_NO_CONTENT |
|
int |
SC_OK |
|
int |
SC_PARTIAL_CONTENT |
|
int |
SC_PAYMENT_REQUIRED |
|
int |
SC_PRECONDITION_FAILED |
|
int |
SC_PROXY_AUTHENTICATION_REQUIRED |
|
int |
SC_REQUESTED_RANGE_NOT_SATISFIABLE |
|
int |
SC_REQUEST_ENTITY_TOO_LARGE |
|
int |
SC_REQUEST_TIMEOUT |
|
int |
SC_REQUEST_URI_TOO_LONG |
|
int |
SC_RESET_CONTENT |
|
int |
SC_SEE_OTHER |
|
int |
SC_SERVICE_UNAVAILABLE |
|
int |
SC_SWITCHING_PROTOCOLS |
|
int |
SC_TEMPORARY_REDIRECT |
|
int |
SC_UNAUTHORIZED |
|
int |
SC_UNSUPPORTED_MEDIA_TYPE |
|
int |
SC_USE_PROXY |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
javax.servlet.ServletResponse
void
|
flushBuffer()
|
int
|
getBufferSize()
|
String
|
getCharacterEncoding()
|
String
|
getContentType()
|
Locale
|
getLocale()
|
ServletOutputStream
|
getOutputStream()
|
PrintWriter
|
getWriter()
|
boolean
|
isCommitted()
|
void
|
reset()
|
void
|
resetBuffer()
|
void
|
setBufferSize(int arg0)
|
void
|
setCharacterEncoding(String arg0)
|
void
|
setContentLength(int arg0)
|
void
|
setContentType(String arg0)
|
void
|
setLocale(Locale arg0)
|
|
From interface
javax.servlet.http.HttpServletResponse
|
Public Constructors
public
MockHttpServletResponse
()
public
MockHttpServletResponse
(ServletOutputStream servletOutputStream)
Public Methods
public
void
addCookie
(Cookie cookie)
public
void
addDateHeader
(String s, long l)
public
void
addIntHeader
(String s, int i)
public
boolean
containsHeader
(String s)
public
void
flushBuffer
()
public
int
getBufferSize
()
public
String
getCharacterEncoding
()
public
String
getContentType
()
public
ServletOutputStream
getOutputStream
()
public
boolean
isCommitted
()
public
void
resetBuffer
()
public
void
sendError
(int i, String s)
public
void
sendError
(int i)
public
void
sendRedirect
(String s)
public
void
setBufferSize
(int i)
public
void
setCharacterEncoding
(String s)
public
void
setContentLength
(int i)
public
void
setContentType
(String ct)
public
void
setDateHeader
(String s, long l)
public
void
setIntHeader
(String s, int i)
public
void
setLocale
(Locale locale)
public
void
setRedirect
(String redirect)
public
void
setStatus
(int i, String s)
public
void
setStatus
(int i)