1 16 package org.apache.myfaces.context.servlet; 17 18 import javax.servlet.ServletOutputStream ; 19 import javax.servlet.http.Cookie ; 20 import javax.servlet.http.HttpServletResponse ; 21 import java.io.IOException ; 22 import java.io.PrintWriter ; 23 import java.util.Locale ; 24 25 30 public class ServletResponseMockImpl 31 implements HttpServletResponse 32 { 33 private Locale _locale = Locale.getDefault(); 34 35 public void addCookie(Cookie cookie) 36 { 37 throw new UnsupportedOperationException (); 38 } 39 40 public boolean containsHeader(String name) 41 { 42 throw new UnsupportedOperationException (); 43 } 44 45 public String encodeURL(String name) 46 { 47 throw new UnsupportedOperationException (); 48 } 49 50 public String encodeRedirectURL(String name) 51 { 52 throw new UnsupportedOperationException (); 53 } 54 55 public String encodeUrl(String name) 56 { 57 throw new UnsupportedOperationException (); 58 } 59 60 public String encodeRedirectUrl(String name) 61 { 62 throw new UnsupportedOperationException (); 63 } 64 65 public void sendError(int i, String name) throws IOException 66 { 67 throw new UnsupportedOperationException (); 68 } 69 70 public void sendError(int i) throws IOException 71 { 72 throw new UnsupportedOperationException (); 73 } 74 75 public void sendRedirect(String name) throws IOException 76 { 77 throw new UnsupportedOperationException (); 78 } 79 80 public void setDateHeader(String name, long l) 81 { 82 throw new UnsupportedOperationException (); 83 } 84 85 public void addDateHeader(String name, long l) 86 { 87 throw new UnsupportedOperationException (); 88 } 89 90 public void setHeader(String name, String name1) 91 { 92 throw new UnsupportedOperationException (); 93 } 94 95 public void addHeader(String name, String name1) 96 { 97 throw new UnsupportedOperationException (); 98 } 99 100 public void setIntHeader(String name, int i) 101 { 102 throw new UnsupportedOperationException (); 103 } 104 105 public void addIntHeader(String name, int i) 106 { 107 throw new UnsupportedOperationException (); 108 } 109 110 public void setStatus(int i) 111 { 112 throw new UnsupportedOperationException (); 113 } 114 115 public void setStatus(int i, String name) 116 { 117 throw new UnsupportedOperationException (); 118 } 119 120 public String getCharacterEncoding() 121 { 122 throw new UnsupportedOperationException (); 123 } 124 125 public ServletOutputStream getOutputStream() throws IOException 126 { 127 throw new UnsupportedOperationException (); 128 } 129 130 public PrintWriter getWriter() throws IOException 131 { 132 throw new UnsupportedOperationException (); 133 } 134 135 public void setContentLength(int i) 136 { 137 throw new UnsupportedOperationException (); 138 } 139 140 public void setContentType(String name) 141 { 142 throw new UnsupportedOperationException (); 143 } 144 145 public void setBufferSize(int i) 146 { 147 throw new UnsupportedOperationException (); 148 } 149 150 public int getBufferSize() 151 { 152 throw new UnsupportedOperationException (); 153 } 154 155 public void flushBuffer() throws IOException 156 { 157 throw new UnsupportedOperationException (); 158 } 159 160 public void resetBuffer() 161 { 162 throw new UnsupportedOperationException (); 163 } 164 165 public boolean isCommitted() 166 { 167 throw new UnsupportedOperationException (); 168 } 169 170 public void reset() 171 { 172 throw new UnsupportedOperationException (); 173 } 174 175 public Locale getLocale() 176 { 177 return _locale; 178 } 179 180 public void setLocale(Locale locale) 181 { 182 _locale = locale; 183 } 184 185 public String getContentType() 186 { 187 throw new UnsupportedOperationException (); 188 } 189 190 public void setCharacterEncoding(String s) 191 { 192 throw new UnsupportedOperationException (); 193 } 194 } 195 | Popular Tags |