KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > test > mocks > servlet > EmptyResponse


1 /**
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  **/

5 package org.exoplatform.test.mocks.servlet;
6
7 import javax.servlet.http.HttpServletResponse JavaDoc;
8 import javax.servlet.http.Cookie JavaDoc;
9 import javax.servlet.ServletOutputStream JavaDoc;
10 import java.io.IOException JavaDoc;
11 import java.io.PrintWriter JavaDoc;
12 import java.util.Locale JavaDoc;
13 /**
14  * Created by The eXo Platform SARL
15  * Author : Mestrallet Benjamin
16  * benjmestrallet@users.sourceforge.net
17  * Date: Jul 29, 2003
18  * Time: 5:44:28 PM
19  */

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