Class DummyResponse

java.lang.Object
com.ibm.websphere.servlet.response.DummyResponse
All Implemented Interfaces:
com.ibm.ws.webcontainer.core.Response, jakarta.servlet.http.HttpServletResponse, jakarta.servlet.ServletResponse

public class DummyResponse extends Object implements jakarta.servlet.http.HttpServletResponse, com.ibm.ws.webcontainer.core.Response
  • Constructor Details

    • DummyResponse

      public DummyResponse()
  • Method Details

    • addCookie

      public void addCookie(jakarta.servlet.http.Cookie arg0)
      Specified by:
      addCookie in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.addCookie(Cookie)
    • containsHeader

      public boolean containsHeader(String arg0)
      Specified by:
      containsHeader in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.containsHeader(String)
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface jakarta.servlet.ServletResponse
    • encodeURL

      public String encodeURL(String arg0)
      Specified by:
      encodeURL in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.encodeURL(String)
    • encodeRedirectURL

      public String encodeRedirectURL(String arg0)
      Specified by:
      encodeRedirectURL in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.encodeRedirectURL(String)
    • encodeUrl

      public String encodeUrl(String arg0)
      Deprecated.
      Specified by:
      encodeUrl in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.encodeUrl(String)
    • encodeRedirectUrl

      public String encodeRedirectUrl(String arg0)
      Deprecated.
      Specified by:
      encodeRedirectUrl in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.encodeRedirectUrl(String)
    • sendError

      public void sendError(int arg0, String arg1) throws IOException
      Specified by:
      sendError in interface jakarta.servlet.http.HttpServletResponse
      Throws:
      IOException
      See Also:
      • HttpServletResponse.sendError(int, String)
    • sendError

      public void sendError(int arg0) throws IOException
      Specified by:
      sendError in interface jakarta.servlet.http.HttpServletResponse
      Throws:
      IOException
      See Also:
      • HttpServletResponse.sendError(int)
    • sendRedirect

      public void sendRedirect(String arg0) throws IOException
      Specified by:
      sendRedirect in interface jakarta.servlet.http.HttpServletResponse
      Throws:
      IOException
      See Also:
      • HttpServletResponse.sendRedirect(String)
    • setDateHeader

      public void setDateHeader(String arg0, long arg1)
      Specified by:
      setDateHeader in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.setDateHeader(String, long)
    • addDateHeader

      public void addDateHeader(String arg0, long arg1)
      Specified by:
      addDateHeader in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.addDateHeader(String, long)
    • setHeader

      public void setHeader(String arg0, String arg1)
      Specified by:
      setHeader in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.setHeader(String, String)
    • addHeader

      public void addHeader(String arg0, String arg1)
      Specified by:
      addHeader in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.addHeader(String, String)
    • setIntHeader

      public void setIntHeader(String arg0, int arg1)
      Specified by:
      setIntHeader in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.setIntHeader(String, int)
    • addIntHeader

      public void addIntHeader(String arg0, int arg1)
      Specified by:
      addIntHeader in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.addIntHeader(String, int)
    • setStatus

      public void setStatus(int arg0)
      Specified by:
      setStatus in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.setStatus(int)
    • setStatus

      public void setStatus(int arg0, String arg1)
      Deprecated.
      Specified by:
      setStatus in interface jakarta.servlet.http.HttpServletResponse
      See Also:
      • HttpServletResponse.setStatus(int, String)
    • getCharacterEncoding

      public String getCharacterEncoding()
      Specified by:
      getCharacterEncoding in interface jakarta.servlet.ServletResponse
      See Also:
      • ServletResponse.getCharacterEncoding()
    • setCharacterEncoding

      public void setCharacterEncoding(String encoding)
      Specified by:
      setCharacterEncoding in interface jakarta.servlet.ServletResponse
    • getOutputStream

      public jakarta.servlet.ServletOutputStream getOutputStream() throws IOException
      Specified by:
      getOutputStream in interface jakarta.servlet.ServletResponse
      Throws:
      IOException
      See Also:
      • ServletResponse.getOutputStream()
    • getWriter

      public PrintWriter getWriter() throws IOException
      Specified by:
      getWriter in interface jakarta.servlet.ServletResponse
      Throws:
      IOException
      See Also:
      • ServletResponse.getWriter()
    • setContentLength

      public void setContentLength(int arg0)
      Specified by:
      setContentLength in interface jakarta.servlet.ServletResponse
      See Also:
      • ServletResponse.setContentLength(int)
    • setContentType

      public void setContentType(String arg0)
      Specified by:
      setContentType in interface jakarta.servlet.ServletResponse
      See Also:
      • ServletResponse.setContentType(String)
    • setBufferSize

      public void setBufferSize(int arg0)
      Specified by:
      setBufferSize in interface jakarta.servlet.ServletResponse
      See Also:
      • ServletResponse.setBufferSize(int)
    • getBufferSize

      public int getBufferSize()
      Specified by:
      getBufferSize in interface jakarta.servlet.ServletResponse
      See Also:
      • ServletResponse.getBufferSize()
    • flushBuffer

      public void flushBuffer() throws IOException
      Specified by:
      flushBuffer in interface jakarta.servlet.ServletResponse
      Throws:
      IOException
      See Also:
      • ServletResponse.flushBuffer()
    • resetBuffer

      public void resetBuffer()
      Specified by:
      resetBuffer in interface jakarta.servlet.ServletResponse
      See Also:
      • ServletResponse.resetBuffer()
    • isCommitted

      public boolean isCommitted()
      Specified by:
      isCommitted in interface jakarta.servlet.ServletResponse
      See Also:
      • ServletResponse.isCommitted()
    • reset

      public void reset()
      Specified by:
      reset in interface jakarta.servlet.ServletResponse
      See Also:
      • ServletResponse.reset()
    • setLocale

      public void setLocale(Locale arg0)
      Specified by:
      setLocale in interface jakarta.servlet.ServletResponse
      See Also:
      • ServletResponse.setLocale(Locale)
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface jakarta.servlet.ServletResponse
      See Also:
      • ServletResponse.getLocale()
    • finish

      public void finish() throws jakarta.servlet.ServletException
      Specified by:
      finish in interface com.ibm.ws.webcontainer.core.Response
      Throws:
      jakarta.servlet.ServletException
    • start

      public void start()
      Specified by:
      start in interface com.ibm.ws.webcontainer.core.Response
    • destroy

      public void destroy()
      Specified by:
      destroy in interface com.ibm.ws.webcontainer.core.Response
    • initForNextResponse

      public void initForNextResponse(IResponse res)
      Specified by:
      initForNextResponse in interface com.ibm.ws.webcontainer.core.Response
    • getHeader

      public String getHeader(String arg0)
      Specified by:
      getHeader in interface jakarta.servlet.http.HttpServletResponse
    • getHeaderNames

      public Collection<String> getHeaderNames()
      Specified by:
      getHeaderNames in interface jakarta.servlet.http.HttpServletResponse
    • getHeaders

      public Collection<String> getHeaders(String name)
      Specified by:
      getHeaders in interface jakarta.servlet.http.HttpServletResponse
    • getStatus

      public int getStatus()
      Specified by:
      getStatus in interface jakarta.servlet.http.HttpServletResponse