All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.netty.protocol.servlet.ServletHttpIncludeResponse Maven / Gradle / Ivy

The newest version!
package com.github.netty.protocol.servlet;

import javax.servlet.ServletResponse;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
import java.io.IOException;
import java.util.Locale;

/**
 * Servlet response introduction
 *
 * @author wangzihao
 * 2018/7/15/015
 */
public class ServletHttpIncludeResponse extends HttpServletResponseWrapper {
    public ServletHttpIncludeResponse(HttpServletResponse response) {
        super(response);
    }

    /**
     * Disallow reset() calls on a included response.
     *
     * @throws IllegalStateException if the response has already
     *                               been committed
     */
    @Override
    public void reset() {

    }


    /**
     * Disallow setContentLength(int) calls on an included
     * response.
     *
     * @param len The new content length
     */
    @Override
    public void setContentLength(int len) {

    }


    /**
     * Disallow setContentLengthLong(long) calls on an included
     * response.
     *
     * @param len The new content length
     */
    @Override
    public void setContentLengthLong(long len) {

    }


    /**
     * Disallow setContentType() calls on an included response.
     *
     * @param type The new content type
     */
    @Override
    public void setContentType(String type) {

    }


    /**
     * Disallow setLocale() calls on an included response.
     *
     * @param loc The new locale
     */
    @Override
    public void setLocale(Locale loc) {

    }


    /**
     * Ignore setBufferSize() calls on an included response.
     *
     * @param size The buffer size
     */
    @Override
    public void setBufferSize(int size) {

    }


    // -------------------------------------------- HttpServletResponse Methods


    /**
     * Disallow addCookie() calls on an included response.
     *
     * @param cookie The new cookie
     */
    @Override
    public void addCookie(Cookie cookie) {

    }


    /**
     * Disallow addDateHeader() calls on an included response.
     *
     * @param name  The new header name
     * @param value The new header value
     */
    @Override
    public void addDateHeader(String name, long value) {

    }


    /**
     * Disallow addHeader() calls on an included response.
     *
     * @param name  The new header name
     * @param value The new header value
     */
    @Override
    public void addHeader(String name, String value) {

    }


    /**
     * Disallow addIntHeader() calls on an included response.
     *
     * @param name  The new header name
     * @param value The new header value
     */
    @Override
    public void addIntHeader(String name, int value) {

    }


    /**
     * Disallow sendError() calls on an included response.
     *
     * @param sc The new status code
     * @throws IOException if an input/output error occurs
     */
    @Override
    public void sendError(int sc) throws IOException {

    }


    /**
     * Disallow sendError() calls on an included response.
     *
     * @param sc  The new status code
     * @param msg The new message
     * @throws IOException if an input/output error occurs
     */
    @Override
    public void sendError(int sc, String msg) throws IOException {

    }


    /**
     * Disallow sendRedirect() calls on an included response.
     *
     * @param location The new location
     * @throws IOException if an input/output error occurs
     */
    @Override
    public void sendRedirect(String location) throws IOException {

    }

    /**
     * Disallow setDateHeader() calls on an included response.
     *
     * @param name  The new header name
     * @param value The new header value
     */
    @Override
    public void setDateHeader(String name, long value) {

    }


    /**
     * Disallow setHeader() calls on an included response.
     *
     * @param name  The new header name
     * @param value The new header value
     */
    @Override
    public void setHeader(String name, String value) {

    }


    /**
     * Disallow setIntHeader() calls on an included response.
     *
     * @param name  The new header name
     * @param value The new header value
     */
    @Override
    public void setIntHeader(String name, int value) {

    }


    /**
     * Disallow setStatus() calls on an included response.
     *
     * @param sc The new status code
     */
    @Override
    public void setStatus(int sc) {

    }


    /**
     * Disallow setStatus() calls on an included response.
     *
     * @param sc  The new status code
     * @param msg The new message
     * @deprecated As of version 2.1, due to ambiguous meaning of the message
     * parameter. To set a status code use
     * setStatus(int), to send an error with a
     * description use sendError(int, String).
     */
    @Deprecated
    @Override
    public void setStatus(int sc, String msg) {

    }

    @Override
    public void setResponse(ServletResponse response) {
        super.setResponse(response);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy