1 5 package org.exoplatform.test.mocks.servlet; 6 7 import javax.servlet.http.HttpServletResponse ; 8 import javax.servlet.http.Cookie ; 9 import javax.servlet.ServletOutputStream ; 10 import java.io.IOException ; 11 import java.io.PrintWriter ; 12 import java.util.Locale ; 13 20 public class EmptyResponse implements HttpServletResponse { 21 22 public void addCookie(Cookie cookie) { } 23 24 public boolean containsHeader(String s) { return false; } 25 26 public String encodeURL(String s) { return null; } 27 28 public String encodeRedirectURL(String s) { return null; } 29 30 public String encodeUrl(String s) { return null; } 31 32 public String encodeRedirectUrl(String s) { return null; } 33 34 public void sendError(int i, String s) throws IOException { } 35 36 public void sendError(int i) throws IOException { } 37 38 public void sendRedirect(String s) throws IOException { } 39 40 public void setDateHeader(String s, long l) { } 41 42 public void addDateHeader(String s, long l) { } 43 44 public void setHeader(String s, String s1) { } 45 46 public void addHeader(String s, String s1) { } 47 48 public void setIntHeader(String s, int i) { } 49 50 public void addIntHeader(String s, int i) { } 51 52 public void setStatus(int i) { } 53 54 public void setStatus(int i, String s) { } 55 56 public String getCharacterEncoding() { return null; } 57 58 public ServletOutputStream getOutputStream() throws IOException { return null; } 59 60 public PrintWriter getWriter() throws IOException { return null; } 61 62 public void setContentLength(int i) { } 63 64 public void setContentType(String s) { } 65 66 public void setBufferSize(int i) { } 67 68 public int getBufferSize() { return 0; } 69 70 public void flushBuffer() throws IOException { } 71 72 public void resetBuffer() { } 73 74 public boolean isCommitted() { return false; } 75 76 public void reset() { } 77 78 public void setLocale(Locale locale) { } 79 80 public Locale getLocale() { return null; } 81 82 public void setCharacterEncoding(String charset){ } 83 84 public String getContentType(){ return null; } 85 } 86 | Popular Tags |