Class MockServletResponse

java.lang.Object
net.datenwerke.rs.utils.mockrequest.MockServletResponse

public class MockServletResponse extends Object
  • Constructor Details

    • MockServletResponse

      public MockServletResponse()
  • Method Details

    • flushBuffer

      public void flushBuffer() throws IOException
      Throws:
      IOException
    • getBufferSize

      public int getBufferSize()
    • getCharacterEncoding

      public String getCharacterEncoding()
    • getContentType

      public String getContentType()
    • getLocale

      public Locale getLocale()
    • getOutputStream

      public ServletOutputStream getOutputStream() throws IOException
      Throws:
      IOException
    • getWriter

      public PrintWriter getWriter() throws IOException
      Throws:
      IOException
    • isCommitted

      public boolean isCommitted()
    • reset

      public void reset()
    • resetBuffer

      public void resetBuffer()
    • setBufferSize

      public void setBufferSize(int arg0)
    • setCharacterEncoding

      public void setCharacterEncoding(String arg0)
    • setContentLength

      public void setContentLength(int arg0)
    • setContentType

      public void setContentType(String arg0)
    • setLocale

      public void setLocale(Locale arg0)
    • addCookie

      public void addCookie(Cookie arg0)
    • addDateHeader

      public void addDateHeader(String arg0, long arg1)
    • addHeader

      public void addHeader(String arg0, String arg1)
    • addIntHeader

      public void addIntHeader(String arg0, int arg1)
    • containsHeader

      public boolean containsHeader(String arg0)
    • encodeRedirectURL

      public String encodeRedirectURL(String arg0)
    • encodeRedirectUrl

      public String encodeRedirectUrl(String arg0)
    • encodeURL

      public String encodeURL(String arg0)
    • encodeUrl

      public String encodeUrl(String arg0)
    • sendError

      public void sendError(int arg0) throws IOException
      Throws:
      IOException
    • sendError

      public void sendError(int arg0, String arg1) throws IOException
      Throws:
      IOException
    • sendRedirect

      public void sendRedirect(String arg0) throws IOException
      Throws:
      IOException
    • setDateHeader

      public void setDateHeader(String arg0, long arg1)
    • setHeader

      public void setHeader(String arg0, String arg1)
    • setIntHeader

      public void setIntHeader(String arg0, int arg1)
    • setStatus

      public void setStatus(int arg0)
    • setStatus

      public void setStatus(int arg0, String arg1)
    • getHeader

      public String getHeader(String arg0)
    • getHeaderNames

      public Collection<String> getHeaderNames()
    • getHeaders

      public Collection<String> getHeaders(String arg0)
    • getStatus

      public int getStatus()
    • setContentLengthLong

      public void setContentLengthLong(long arg0)