Package javax.servlet

Class ServletResponseWrapper

    • Constructor Detail

      • ServletResponseWrapper

        public ServletResponseWrapper​(ServletResponse wrapped)
        Constructor.
        Parameters:
        wrapped - the wrapped response.
    • Method Detail

      • getBufferSize

        public int getBufferSize()
        Get the buffer size.
        Specified by:
        getBufferSize in interface ServletResponse
        Returns:
        the buffer size.
      • getResponse

        public ServletResponse getResponse()
        Get the wrapped response.
        Returns:
        the wrapped response.
      • isCommitted

        public boolean isCommitted()
        Is committed.
        Specified by:
        isCommitted in interface ServletResponse
        Returns:
        true if it is, false otherwise.
      • isWrapperFor

        public boolean isWrapperFor​(ServletResponse wrapped)
        Is wrapper for.
        Parameters:
        wrapped - the wrapped response.
        Returns:
        true if we wrap it, false otherwise.
      • isWrapperFor

        public boolean isWrapperFor​(Class<?> wrappedType)
        Is wrapper for.
        Parameters:
        wrappedType - the wrapped type.
        Returns:
        true if we wrap it, false otherwise.
      • setBufferSize

        public void setBufferSize​(int bufferSize)
        Set the buffer size.
        Specified by:
        setBufferSize in interface ServletResponse
        Parameters:
        bufferSize - the buffer size.
      • setCharacterEncoding

        public void setCharacterEncoding​(String characterEncoding)
        Set the character encoding.
        Specified by:
        setCharacterEncoding in interface ServletResponse
        Parameters:
        characterEncoding - the character encoding.
      • setContentLength

        public void setContentLength​(int contentLength)
        Set the content length.
        Specified by:
        setContentLength in interface ServletResponse
        Parameters:
        contentLength - the content length.
      • setContentLengthLong

        public void setContentLengthLong​(long contentLength)
        Set the content length.
        Specified by:
        setContentLengthLong in interface ServletResponse
        Parameters:
        contentLength - the content length.
      • setContentType

        public void setContentType​(String contentType)
        Set the content type.
        Specified by:
        setContentType in interface ServletResponse
        Parameters:
        contentType - the content type.
      • setLocale

        public void setLocale​(Locale locale)
        Set the locale.
        Specified by:
        setLocale in interface ServletResponse
        Parameters:
        locale - the locale.
      • setResponse

        public void setResponse​(ServletResponse wrapped)
        Set the wrapped response.
        Parameters:
        wrapped - the wrapped response.