Class DummyResponse

  • All Implemented Interfaces:
    com.ibm.ws.webcontainer.core.Response, jakarta.servlet.http.HttpServletResponse, jakarta.servlet.ServletResponse

    public class DummyResponse
    extends java.lang.Object
    implements jakarta.servlet.http.HttpServletResponse, com.ibm.ws.webcontainer.core.Response
    • Field Summary

      • Fields inherited from interface jakarta.servlet.http.HttpServletResponse

        SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_EXPECTATION_FAILED, SC_FORBIDDEN, SC_FOUND, SC_GATEWAY_TIMEOUT, SC_GONE, SC_HTTP_VERSION_NOT_SUPPORTED, SC_INTERNAL_SERVER_ERROR, SC_LENGTH_REQUIRED, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTIPLE_CHOICES, SC_NO_CONTENT, SC_NON_AUTHORITATIVE_INFORMATION, SC_NOT_ACCEPTABLE, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PARTIAL_CONTENT, SC_PAYMENT_REQUIRED, SC_PRECONDITION_FAILED, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_TIMEOUT, SC_REQUEST_URI_TOO_LONG, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_RESET_CONTENT, SC_SEE_OTHER, SC_SERVICE_UNAVAILABLE, SC_SWITCHING_PROTOCOLS, SC_TEMPORARY_REDIRECT, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY
    • Constructor Summary

      Constructors 
      Constructor Description
      DummyResponse()  
    • Constructor Detail

      • DummyResponse

        public DummyResponse()
    • Method Detail

      • 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​(java.lang.String arg0)
        Specified by:
        containsHeader in interface jakarta.servlet.http.HttpServletResponse
        See Also:
        HttpServletResponse.containsHeader(String)
      • getContentType

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

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

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

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

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

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

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

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

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

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

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

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

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

        public void addIntHeader​(java.lang.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,
                              java.lang.String arg1)
        Deprecated.
        Specified by:
        setStatus in interface jakarta.servlet.http.HttpServletResponse
        See Also:
        HttpServletResponse.setStatus(int, String)
      • getCharacterEncoding

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

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

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

        public java.io.PrintWriter getWriter()
                                      throws java.io.IOException
        Specified by:
        getWriter in interface jakarta.servlet.ServletResponse
        Throws:
        java.io.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​(java.lang.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 java.io.IOException
        Specified by:
        flushBuffer in interface jakarta.servlet.ServletResponse
        Throws:
        java.io.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​(java.util.Locale arg0)
        Specified by:
        setLocale in interface jakarta.servlet.ServletResponse
        See Also:
        ServletResponse.setLocale(Locale)
      • getLocale

        public java.util.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 java.lang.String getHeader​(java.lang.String arg0)
        Specified by:
        getHeader in interface jakarta.servlet.http.HttpServletResponse
      • getHeaderNames

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

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

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