1 17 18 19 package org.apache.catalina.core; 20 21 22 import java.io.IOException ; 23 import java.io.OutputStream ; 24 import java.io.PrintWriter ; 25 import java.util.Locale ; 26 27 import javax.servlet.ServletOutputStream ; 28 import javax.servlet.ServletResponse ; 29 import javax.servlet.http.Cookie ; 30 import javax.servlet.http.HttpServletResponse ; 31 32 import org.apache.catalina.Context; 33 import org.apache.catalina.connector.Connector; 34 import org.apache.catalina.connector.Request; 35 36 37 43 44 public class DummyResponse 45 implements HttpServletResponse { 46 47 public DummyResponse() { 48 } 49 50 51 public void setAppCommitted(boolean appCommitted) {} 52 public boolean isAppCommitted() { return false; } 53 public Connector getConnector() { return null; } 54 public void setConnector(Connector connector) {} 55 public int getContentCount() { return -1; } 56 public Context getContext() { return null; } 57 public void setContext(Context context) {} 58 public boolean getIncluded() { return false; } 59 public void setIncluded(boolean included) {} 60 public String getInfo() { return null; } 61 public Request getRequest() { return null; } 62 public void setRequest(Request request) {} 63 public ServletResponse getResponse() { return null; } 64 public OutputStream getStream() { return null; } 65 public void setStream(OutputStream stream) {} 66 public void setSuspended(boolean suspended) {} 67 public boolean isSuspended() { return false; } 68 public void setError() {} 69 public boolean isError() { return false; } 70 public ServletOutputStream createOutputStream() throws IOException { 71 return null; 72 } 73 public void finishResponse() throws IOException {} 74 public int getContentLength() { return -1; } 75 public String getContentType() { return null; } 76 public PrintWriter getReporter() { return null; } 77 public void recycle() {} 78 public void write(int b) throws IOException {} 79 public void write(byte b[]) throws IOException {} 80 public void write(byte b[], int off, int len) throws IOException {} 81 public void flushBuffer() throws IOException {} 82 public int getBufferSize() { return -1; } 83 public String getCharacterEncoding() { return null; } 84 public void setCharacterEncoding(String charEncoding) {} 85 public ServletOutputStream getOutputStream() throws IOException { 86 return null; 87 } 88 public Locale getLocale() { return null; } 89 public PrintWriter getWriter() throws IOException { return null; } 90 public boolean isCommitted() { return false; } 91 public void reset() {} 92 public void resetBuffer() {} 93 public void setBufferSize(int size) {} 94 public void setContentLength(int length) {} 95 public void setContentType(String type) {} 96 public void setLocale(Locale locale) {} 97 98 public Cookie [] getCookies() { return null; } 99 public String getHeader(String name) { return null; } 100 public String [] getHeaderNames() { return null; } 101 public String [] getHeaderValues(String name) { return null; } 102 public String getMessage() { return null; } 103 public int getStatus() { return -1; } 104 public void reset(int status, String message) {} 105 public void addCookie(Cookie cookie) {} 106 public void addDateHeader(String name, long value) {} 107 public void addHeader(String name, String value) {} 108 public void addIntHeader(String name, int value) {} 109 public boolean containsHeader(String name) { return false; } 110 public String encodeRedirectURL(String url) { return null; } 111 public String encodeRedirectUrl(String url) { return null; } 112 public String encodeURL(String url) { return null; } 113 public String encodeUrl(String url) { return null; } 114 public void sendAcknowledgement() throws IOException {} 115 public void sendError(int status) throws IOException {} 116 public void sendError(int status, String message) throws IOException {} 117 public void sendRedirect(String location) throws IOException {} 118 public void setDateHeader(String name, long value) {} 119 public void setHeader(String name, String value) {} 120 public void setIntHeader(String name, int value) {} 121 public void setStatus(int status) {} 122 public void setStatus(int status, String message) {} 123 124 125 } 126 | Popular Tags |