001: package com.nabhinc.ws.server;
002:
003: import java.io.BufferedReader;
004: import java.io.IOException;
005: import java.io.UnsupportedEncodingException;
006: import java.security.Principal;
007: import java.util.Enumeration;
008: import java.util.Locale;
009: import java.util.Map;
010:
011: import javax.servlet.RequestDispatcher;
012: import javax.servlet.ServletInputStream;
013: import javax.servlet.http.Cookie;
014: import javax.servlet.http.HttpServletRequest;
015: import javax.servlet.http.HttpSession;
016:
017: public class AdminRequestWrapper implements HttpServletRequest {
018:
019: private static AdminRequestWrapper arwSelf = new AdminRequestWrapper();
020:
021: public static AdminRequestWrapper getInstance() {
022: return arwSelf;
023: }
024:
025: public String getAuthType() {
026: // TODO Auto-generated method stub
027: return null;
028: }
029:
030: public String getContextPath() {
031: // TODO Auto-generated method stub
032: return null;
033: }
034:
035: public Cookie[] getCookies() {
036: // TODO Auto-generated method stub
037: return null;
038: }
039:
040: public long getDateHeader(String arg0) {
041: // TODO Auto-generated method stub
042: return 0;
043: }
044:
045: public String getHeader(String arg0) {
046: // TODO Auto-generated method stub
047: return null;
048: }
049:
050: public Enumeration getHeaderNames() {
051: // TODO Auto-generated method stub
052: return null;
053: }
054:
055: public Enumeration getHeaders(String arg0) {
056: // TODO Auto-generated method stub
057: return null;
058: }
059:
060: public int getIntHeader(String arg0) {
061: // TODO Auto-generated method stub
062: return 0;
063: }
064:
065: public String getMethod() {
066: // TODO Auto-generated method stub
067: return null;
068: }
069:
070: public String getPathInfo() {
071: // TODO Auto-generated method stub
072: return null;
073: }
074:
075: public String getPathTranslated() {
076: // TODO Auto-generated method stub
077: return null;
078: }
079:
080: public String getQueryString() {
081: // TODO Auto-generated method stub
082: return null;
083: }
084:
085: public String getRemoteUser() {
086: return "admin";
087: }
088:
089: public String getRequestURI() {
090: // TODO Auto-generated method stub
091: return null;
092: }
093:
094: public StringBuffer getRequestURL() {
095: // TODO Auto-generated method stub
096: return null;
097: }
098:
099: public String getRequestedSessionId() {
100: // TODO Auto-generated method stub
101: return null;
102: }
103:
104: public String getServletPath() {
105: // TODO Auto-generated method stub
106: return null;
107: }
108:
109: public HttpSession getSession() {
110: // TODO Auto-generated method stub
111: return null;
112: }
113:
114: public HttpSession getSession(boolean arg0) {
115: // TODO Auto-generated method stub
116: return null;
117: }
118:
119: public Principal getUserPrincipal() {
120: // TODO Auto-generated method stub
121: return null;
122: }
123:
124: public boolean isRequestedSessionIdFromCookie() {
125: // TODO Auto-generated method stub
126: return false;
127: }
128:
129: public boolean isRequestedSessionIdFromURL() {
130: // TODO Auto-generated method stub
131: return false;
132: }
133:
134: public boolean isRequestedSessionIdFromUrl() {
135: // TODO Auto-generated method stub
136: return false;
137: }
138:
139: public boolean isRequestedSessionIdValid() {
140: // TODO Auto-generated method stub
141: return false;
142: }
143:
144: public boolean isUserInRole(String arg0) {
145: // TODO Auto-generated method stub
146: return true;
147: }
148:
149: public Object getAttribute(String arg0) {
150: // TODO Auto-generated method stub
151: return null;
152: }
153:
154: public Enumeration getAttributeNames() {
155: // TODO Auto-generated method stub
156: return null;
157: }
158:
159: public String getCharacterEncoding() {
160: // TODO Auto-generated method stub
161: return null;
162: }
163:
164: public int getContentLength() {
165: // TODO Auto-generated method stub
166: return 0;
167: }
168:
169: public String getContentType() {
170: // TODO Auto-generated method stub
171: return null;
172: }
173:
174: public ServletInputStream getInputStream() throws IOException {
175: // TODO Auto-generated method stub
176: return null;
177: }
178:
179: public String getLocalAddr() {
180: // TODO Auto-generated method stub
181: return null;
182: }
183:
184: public String getLocalName() {
185: // TODO Auto-generated method stub
186: return null;
187: }
188:
189: public int getLocalPort() {
190: // TODO Auto-generated method stub
191: return 0;
192: }
193:
194: public Locale getLocale() {
195: // TODO Auto-generated method stub
196: return null;
197: }
198:
199: public Enumeration getLocales() {
200: // TODO Auto-generated method stub
201: return null;
202: }
203:
204: public String getParameter(String arg0) {
205: // TODO Auto-generated method stub
206: return null;
207: }
208:
209: public Map getParameterMap() {
210: // TODO Auto-generated method stub
211: return null;
212: }
213:
214: public Enumeration getParameterNames() {
215: // TODO Auto-generated method stub
216: return null;
217: }
218:
219: public String[] getParameterValues(String arg0) {
220: // TODO Auto-generated method stub
221: return null;
222: }
223:
224: public String getProtocol() {
225: // TODO Auto-generated method stub
226: return null;
227: }
228:
229: public BufferedReader getReader() throws IOException {
230: // TODO Auto-generated method stub
231: return null;
232: }
233:
234: public String getRealPath(String arg0) {
235: // TODO Auto-generated method stub
236: return null;
237: }
238:
239: public String getRemoteAddr() {
240: // TODO Auto-generated method stub
241: return "127.0.0.1";
242: }
243:
244: public String getRemoteHost() {
245: // TODO Auto-generated method stub
246: return "localhost";
247: }
248:
249: public int getRemotePort() {
250: // TODO Auto-generated method stub
251: return 0;
252: }
253:
254: public RequestDispatcher getRequestDispatcher(String arg0) {
255: // TODO Auto-generated method stub
256: return null;
257: }
258:
259: public String getScheme() {
260: // TODO Auto-generated method stub
261: return null;
262: }
263:
264: public String getServerName() {
265: // TODO Auto-generated method stub
266: return null;
267: }
268:
269: public int getServerPort() {
270: // TODO Auto-generated method stub
271: return 0;
272: }
273:
274: public boolean isSecure() {
275: // TODO Auto-generated method stub
276: return false;
277: }
278:
279: public void removeAttribute(String arg0) {
280: // TODO Auto-generated method stub
281:
282: }
283:
284: public void setAttribute(String arg0, Object arg1) {
285: // TODO Auto-generated method stub
286:
287: }
288:
289: public void setCharacterEncoding(String arg0)
290: throws UnsupportedEncodingException {
291: // TODO Auto-generated method stub
292:
293: }
294:
295: }
|