/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.kernel.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Collection;
import java.util.Locale;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
/**
* @author Shuyang Zhou
*/
public class StubHttpServletResponse implements HttpServletResponse {
@Override
public void addCookie(Cookie cookie) {
throw new UnsupportedOperationException();
}
@Override
public void addDateHeader(String name, long value) {
throw new UnsupportedOperationException();
}
@Override
public void addHeader(String name, String value) {
throw new UnsupportedOperationException();
}
@Override
public void addIntHeader(String name, int value) {
throw new UnsupportedOperationException();
}
@Override
public boolean containsHeader(String name) {
throw new UnsupportedOperationException();
}
/**
* @deprecated As of 7.0.0
*/
@Deprecated
@Override
public String encodeRedirectUrl(String url) {
throw new UnsupportedOperationException();
}
@Override
public String encodeRedirectURL(String url) {
throw new UnsupportedOperationException();
}
/**
* @deprecated As of 7.0.0
*/
@Deprecated
@Override
public String encodeUrl(String string) {
throw new UnsupportedOperationException();
}
@Override
public String encodeURL(String string) {
throw new UnsupportedOperationException();
}
@Override
@SuppressWarnings("unused")
public void flushBuffer() throws IOException {
throw new UnsupportedOperationException();
}
@Override
public int getBufferSize() {
throw new UnsupportedOperationException();
}
@Override
public String getCharacterEncoding() {
throw new UnsupportedOperationException();
}
@Override
public String getContentType() {
throw new UnsupportedOperationException();
}
@Override
public String getHeader(String name) {
throw new UnsupportedOperationException();
}
@Override
public Collection<String> getHeaderNames() {
throw new UnsupportedOperationException();
}
@Override
public Collection<String> getHeaders(String name) {
throw new UnsupportedOperationException();
}
@Override
public Locale getLocale() {
throw new UnsupportedOperationException();
}
@Override
@SuppressWarnings("unused")
public ServletOutputStream getOutputStream() throws IOException {
throw new UnsupportedOperationException();
}
@Override
public int getStatus() {
throw new UnsupportedOperationException();
}
@Override
@SuppressWarnings("unused")
public PrintWriter getWriter() throws IOException {
throw new UnsupportedOperationException();
}
@Override
public boolean isCommitted() {
throw new UnsupportedOperationException();
}
@Override
public void reset() {
throw new UnsupportedOperationException();
}
@Override
public void resetBuffer() {
throw new UnsupportedOperationException();
}
@Override
@SuppressWarnings("unused")
public void sendError(int status) throws IOException {
throw new UnsupportedOperationException();
}
@Override
@SuppressWarnings("unused")
public void sendError(int status, String message) throws IOException {
throw new UnsupportedOperationException();
}
@Override
@SuppressWarnings("unused")
public void sendRedirect(String location) throws IOException {
throw new UnsupportedOperationException();
}
@Override
public void setBufferSize(int bufferSzie) {
throw new UnsupportedOperationException();
}
@Override
public void setCharacterEncoding(String characterEncoding) {
throw new UnsupportedOperationException();
}
@Override
public void setContentLength(int contentLength) {
throw new UnsupportedOperationException();
}
@Override
public void setContentType(String contentType) {
throw new UnsupportedOperationException();
}
@Override
public void setDateHeader(String name, long value) {
throw new UnsupportedOperationException();
}
@Override
public void setHeader(String name, String value) {
throw new UnsupportedOperationException();
}
@Override
public void setIntHeader(String name, int value) {
throw new UnsupportedOperationException();
}
@Override
public void setLocale(Locale locale) {
throw new UnsupportedOperationException();
}
@Override
public void setStatus(int status) {
throw new UnsupportedOperationException();
}
/**
* @deprecated As of 7.0.0
*/
@Deprecated
@Override
public void setStatus(int status, String message) {
throw new UnsupportedOperationException();
}
}