Source Code Cross Referenced for DummyRequest.java in  » Sevlet-Container » tomcat-catalina » org » apache » catalina » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » tomcat catalina » org.apache.catalina.core 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 1999,2004 The Apache Software Foundation.
003:         * 
004:         * Licensed under the Apache License, Version 2.0 (the "License");
005:         * you may not use this file except in compliance with the License.
006:         * You may obtain a copy of the License at
007:         * 
008:         *      http://www.apache.org/licenses/LICENSE-2.0
009:         * 
010:         * Unless required by applicable law or agreed to in writing, software
011:         * distributed under the License is distributed on an "AS IS" BASIS,
012:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013:         * See the License for the specific language governing permissions and
014:         * limitations under the License.
015:         */
016:
017:        package org.apache.catalina.core;
018:
019:        import java.io.BufferedReader;
020:        import java.io.IOException;
021:        import java.io.InputStream;
022:        import java.io.UnsupportedEncodingException;
023:        import java.net.Socket;
024:        import java.security.Principal;
025:        import java.util.Enumeration;
026:        import java.util.Iterator;
027:        import java.util.Locale;
028:        import java.util.Map;
029:
030:        import javax.servlet.FilterChain;
031:        import javax.servlet.RequestDispatcher;
032:        import javax.servlet.ServletInputStream;
033:        import javax.servlet.ServletRequest;
034:        import javax.servlet.http.Cookie;
035:        import javax.servlet.http.HttpServletRequest;
036:        import javax.servlet.http.HttpSession;
037:
038:        import org.apache.catalina.Connector;
039:        import org.apache.catalina.Context;
040:        import org.apache.catalina.Host;
041:        import org.apache.catalina.HttpRequest;
042:        import org.apache.catalina.Response;
043:        import org.apache.catalina.ValveContext;
044:        import org.apache.catalina.Wrapper;
045:        import org.apache.tomcat.util.buf.MessageBytes;
046:
047:        /**
048:         * Dummy request object, used for request dispatcher mapping, as well as
049:         * JSP precompilation.
050:         *
051:         * @author Remy Maucherat
052:         * @version $Revision: 1.10 $ $Date: 2004/02/27 14:58:42 $
053:         */
054:
055:        public class DummyRequest implements  HttpRequest, HttpServletRequest {
056:
057:            public DummyRequest() {
058:            }
059:
060:            public DummyRequest(String contextPath, String decodedURI,
061:                    String queryString) {
062:                this .contextPath = contextPath;
063:                this .decodedURI = decodedURI;
064:                this .queryString = queryString;
065:            }
066:
067:            protected String contextPath = null;
068:            protected String decodedURI = null;
069:            protected String queryString = null;
070:
071:            protected String pathInfo = null;
072:            protected String servletPath = null;
073:            protected Wrapper wrapper = null;
074:
075:            protected FilterChain filterChain = null;
076:            protected ValveContext valveContext = null;
077:
078:            private static Enumeration dummyEnum = new Enumeration() {
079:                public boolean hasMoreElements() {
080:                    return false;
081:                }
082:
083:                public Object nextElement() {
084:                    return null;
085:                }
086:            };
087:
088:            public String getContextPath() {
089:                return (contextPath);
090:            }
091:
092:            public MessageBytes getContextPathMB() {
093:                return null;
094:            }
095:
096:            public ServletRequest getRequest() {
097:                return (this );
098:            }
099:
100:            public String getDecodedRequestURI() {
101:                return decodedURI;
102:            }
103:
104:            public MessageBytes getDecodedRequestURIMB() {
105:                return null;
106:            }
107:
108:            public FilterChain getFilterChain() {
109:                return (this .filterChain);
110:            }
111:
112:            public void setFilterChain(FilterChain filterChain) {
113:                this .filterChain = filterChain;
114:            }
115:
116:            public String getQueryString() {
117:                return queryString;
118:            }
119:
120:            public void setQueryString(String query) {
121:                queryString = query;
122:            }
123:
124:            public String getPathInfo() {
125:                return pathInfo;
126:            }
127:
128:            public void setPathInfo(String path) {
129:                pathInfo = path;
130:            }
131:
132:            public MessageBytes getPathInfoMB() {
133:                return null;
134:            }
135:
136:            public MessageBytes getRequestPathMB() {
137:                return null;
138:            }
139:
140:            public String getServletPath() {
141:                return servletPath;
142:            }
143:
144:            public void setServletPath(String path) {
145:                servletPath = path;
146:            }
147:
148:            public MessageBytes getServletPathMB() {
149:                return null;
150:            }
151:
152:            public ValveContext getValveContext() {
153:                return (this .valveContext);
154:            }
155:
156:            public void setValveContext(ValveContext valveContext) {
157:                this .valveContext = valveContext;
158:            }
159:
160:            public Wrapper getWrapper() {
161:                return (this .wrapper);
162:            }
163:
164:            public void setWrapper(Wrapper wrapper) {
165:                this .wrapper = wrapper;
166:            }
167:
168:            public String getAuthorization() {
169:                return null;
170:            }
171:
172:            public void setAuthorization(String authorization) {
173:            }
174:
175:            public Connector getConnector() {
176:                return null;
177:            }
178:
179:            public void setConnector(Connector connector) {
180:            }
181:
182:            public Context getContext() {
183:                return null;
184:            }
185:
186:            public void setContext(Context context) {
187:            }
188:
189:            public Host getHost() {
190:                return null;
191:            }
192:
193:            public void setHost(Host host) {
194:            }
195:
196:            public String getInfo() {
197:                return null;
198:            }
199:
200:            public Response getResponse() {
201:                return null;
202:            }
203:
204:            public void setResponse(Response response) {
205:            }
206:
207:            public Socket getSocket() {
208:                return null;
209:            }
210:
211:            public void setSocket(Socket socket) {
212:            }
213:
214:            public InputStream getStream() {
215:                return null;
216:            }
217:
218:            public void setStream(InputStream input) {
219:            }
220:
221:            public void addLocale(Locale locale) {
222:            }
223:
224:            public ServletInputStream createInputStream() throws IOException {
225:                return null;
226:            }
227:
228:            public void finishRequest() throws IOException {
229:            }
230:
231:            public Object getNote(String name) {
232:                return null;
233:            }
234:
235:            public Iterator getNoteNames() {
236:                return null;
237:            }
238:
239:            public void removeNote(String name) {
240:            }
241:
242:            public void setContentType(String type) {
243:            }
244:
245:            public void setNote(String name, Object value) {
246:            }
247:
248:            public void setProtocol(String protocol) {
249:            }
250:
251:            public void setRemoteAddr(String remoteAddr) {
252:            }
253:
254:            public void setRemoteHost(String remoteHost) {
255:            }
256:
257:            public void setScheme(String scheme) {
258:            }
259:
260:            public void setServerName(String name) {
261:            }
262:
263:            public void setServerPort(int port) {
264:            }
265:
266:            public Object getAttribute(String name) {
267:                return null;
268:            }
269:
270:            public Enumeration getAttributeNames() {
271:                return null;
272:            }
273:
274:            public String getCharacterEncoding() {
275:                return null;
276:            }
277:
278:            public int getContentLength() {
279:                return -1;
280:            }
281:
282:            public void setContentLength(int length) {
283:            }
284:
285:            public String getContentType() {
286:                return null;
287:            }
288:
289:            public ServletInputStream getInputStream() throws IOException {
290:                return null;
291:            }
292:
293:            public Locale getLocale() {
294:                return null;
295:            }
296:
297:            public Enumeration getLocales() {
298:                return null;
299:            }
300:
301:            public String getProtocol() {
302:                return null;
303:            }
304:
305:            public BufferedReader getReader() throws IOException {
306:                return null;
307:            }
308:
309:            public String getRealPath(String path) {
310:                return null;
311:            }
312:
313:            public String getRemoteAddr() {
314:                return null;
315:            }
316:
317:            public String getRemoteHost() {
318:                return null;
319:            }
320:
321:            public String getScheme() {
322:                return null;
323:            }
324:
325:            public String getServerName() {
326:                return null;
327:            }
328:
329:            public int getServerPort() {
330:                return -1;
331:            }
332:
333:            public boolean isSecure() {
334:                return false;
335:            }
336:
337:            public void removeAttribute(String name) {
338:            }
339:
340:            public void setAttribute(String name, Object value) {
341:            }
342:
343:            public void setCharacterEncoding(String enc)
344:                    throws UnsupportedEncodingException {
345:            }
346:
347:            public void addCookie(Cookie cookie) {
348:            }
349:
350:            public void addHeader(String name, String value) {
351:            }
352:
353:            public void addParameter(String name, String values[]) {
354:            }
355:
356:            public void clearCookies() {
357:            }
358:
359:            public void clearHeaders() {
360:            }
361:
362:            public void clearLocales() {
363:            }
364:
365:            public void clearParameters() {
366:            }
367:
368:            public void recycle() {
369:            }
370:
371:            public void setAuthType(String authType) {
372:            }
373:
374:            public void setContextPath(String path) {
375:            }
376:
377:            public void setMethod(String method) {
378:            }
379:
380:            public void setRequestedSessionCookie(boolean flag) {
381:            }
382:
383:            public void setRequestedSessionId(String id) {
384:            }
385:
386:            public void setRequestedSessionURL(boolean flag) {
387:            }
388:
389:            public void setRequestURI(String uri) {
390:            }
391:
392:            public void setSecure(boolean secure) {
393:            }
394:
395:            public void setUserPrincipal(Principal principal) {
396:            }
397:
398:            public String getParameter(String name) {
399:                return null;
400:            }
401:
402:            public Map getParameterMap() {
403:                return null;
404:            }
405:
406:            public Enumeration getParameterNames() {
407:                return dummyEnum;
408:            }
409:
410:            public String[] getParameterValues(String name) {
411:                return null;
412:            }
413:
414:            public RequestDispatcher getRequestDispatcher(String path) {
415:                return null;
416:            }
417:
418:            public String getAuthType() {
419:                return null;
420:            }
421:
422:            public Cookie[] getCookies() {
423:                return null;
424:            }
425:
426:            public long getDateHeader(String name) {
427:                return -1;
428:            }
429:
430:            public String getHeader(String name) {
431:                return null;
432:            }
433:
434:            public Enumeration getHeaders(String name) {
435:                return null;
436:            }
437:
438:            public Enumeration getHeaderNames() {
439:                return null;
440:            }
441:
442:            public int getIntHeader(String name) {
443:                return -1;
444:            }
445:
446:            public String getMethod() {
447:                return null;
448:            }
449:
450:            public String getPathTranslated() {
451:                return null;
452:            }
453:
454:            public String getRemoteUser() {
455:                return null;
456:            }
457:
458:            public String getRequestedSessionId() {
459:                return null;
460:            }
461:
462:            public String getRequestURI() {
463:                return null;
464:            }
465:
466:            public void setDecodedRequestURI(String uri) {
467:            }
468:
469:            public StringBuffer getRequestURL() {
470:                return null;
471:            }
472:
473:            public HttpSession getSession() {
474:                return null;
475:            }
476:
477:            public HttpSession getSession(boolean create) {
478:                return null;
479:            }
480:
481:            public boolean isRequestedSessionIdFromCookie() {
482:                return false;
483:            }
484:
485:            public boolean isRequestedSessionIdFromURL() {
486:                return false;
487:            }
488:
489:            public boolean isRequestedSessionIdFromUrl() {
490:                return false;
491:            }
492:
493:            public boolean isRequestedSessionIdValid() {
494:                return false;
495:            }
496:
497:            public boolean isUserInRole(String role) {
498:                return false;
499:            }
500:
501:            public Principal getUserPrincipal() {
502:                return null;
503:            }
504:
505:            public String getLocalAddr() {
506:                return null;
507:            }
508:
509:            public String getLocalName() {
510:                return null;
511:            }
512:
513:            public int getLocalPort() {
514:                return -1;
515:            }
516:
517:            public int getRemotePort() {
518:                return -1;
519:            }
520:
521:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.