Class MockServletResponse
java.lang.Object
net.datenwerke.rs.utils.mockrequest.MockServletResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCookie(Cookie arg0) voidaddDateHeader(String arg0, long arg1) voidvoidaddIntHeader(String arg0, int arg1) booleancontainsHeader(String arg0) encodeRedirectUrl(String arg0) encodeRedirectURL(String arg0) voidintgetHeaders(String arg0) ServletOutputStreamintbooleanvoidreset()voidvoidsendError(int arg0) voidvoidsendRedirect(String arg0) voidsetBufferSize(int arg0) voidsetCharacterEncoding(String arg0) voidsetContentLength(int arg0) voidsetContentLengthLong(long arg0) voidsetContentType(String arg0) voidsetDateHeader(String arg0, long arg1) voidvoidsetIntHeader(String arg0, int arg1) voidvoidsetStatus(int arg0) void
-
Constructor Details
-
MockServletResponse
public MockServletResponse()
-
-
Method Details
-
flushBuffer
- Throws:
IOException
-
getBufferSize
public int getBufferSize() -
getCharacterEncoding
-
getContentType
-
getLocale
-
getOutputStream
- Throws:
IOException
-
getWriter
- Throws:
IOException
-
isCommitted
public boolean isCommitted() -
reset
public void reset() -
resetBuffer
public void resetBuffer() -
setBufferSize
public void setBufferSize(int arg0) -
setCharacterEncoding
-
setContentLength
public void setContentLength(int arg0) -
setContentType
-
setLocale
-
addCookie
public void addCookie(Cookie arg0) -
addDateHeader
-
addHeader
-
addIntHeader
-
containsHeader
-
encodeRedirectURL
-
encodeRedirectUrl
-
encodeURL
-
encodeUrl
-
sendError
- Throws:
IOException
-
sendError
- Throws:
IOException
-
sendRedirect
- Throws:
IOException
-
setDateHeader
-
setHeader
-
setIntHeader
-
setStatus
public void setStatus(int arg0) -
setStatus
-
getHeader
-
getHeaderNames
-
getHeaders
-
getStatus
public int getStatus() -
setContentLengthLong
public void setContentLengthLong(long arg0)
-