View Javadoc

1   // ========================================================================
2   // Copyright (c) 2010 Mort Bay Consulting Pty. Ltd.
3   // ------------------------------------------------------------------------
4   // All rights reserved. This program and the accompanying materials
5   // are made available under the terms of the Eclipse Public License v1.0
6   // and Apache License v2.0 which accompanies this distribution.
7   // The Eclipse Public License is available at 
8   // http://www.eclipse.org/legal/epl-v10.html
9   // The Apache License v2.0 is available at
10  // http://www.opensource.org/licenses/apache2.0.php
11  // You may elect to redistribute this code under either of these licenses. 
12  // ========================================================================
13  
14  
15  package org.eclipse.jetty.server;
16  
17  import java.security.Principal;
18  import java.util.Enumeration;
19  
20  import javax.servlet.ServletRequest;
21  import javax.servlet.ServletRequestWrapper;
22  import javax.servlet.http.Cookie;
23  import javax.servlet.http.HttpServletRequest;
24  import javax.servlet.http.HttpSession;
25  
26  /* ------------------------------------------------------------ */
27  /** Class to tunnel a ServletRequest via a HttpServletRequest
28   */
29  public class ServletRequestHttpWrapper extends ServletRequestWrapper implements HttpServletRequest
30  {
31      public ServletRequestHttpWrapper(ServletRequest request)
32      {
33          super(request);
34      }
35  
36      public String getAuthType()
37      {
38          return null;
39      }
40  
41      public Cookie[] getCookies()
42      {
43          return null;
44      }
45  
46      public long getDateHeader(String name)
47      {
48          return 0;
49      }
50  
51      public String getHeader(String name)
52      {
53          return null;
54      }
55  
56      public Enumeration getHeaders(String name)
57      {
58          return null;
59      }
60  
61      public Enumeration getHeaderNames()
62      {
63          return null;
64      }
65  
66      public int getIntHeader(String name)
67      {
68          return 0;
69      }
70  
71      public String getMethod()
72      {
73          return null;
74      }
75  
76      public String getPathInfo()
77      {
78          return null;
79      }
80  
81      public String getPathTranslated()
82      {
83          return null;
84      }
85  
86      public String getContextPath()
87      {
88          return null;
89      }
90  
91      public String getQueryString()
92      {
93          return null;
94      }
95  
96      public String getRemoteUser()
97      {
98          return null;
99      }
100 
101     public boolean isUserInRole(String role)
102     {
103         return false;
104     }
105 
106     public Principal getUserPrincipal()
107     {
108         return null;
109     }
110 
111     public String getRequestedSessionId()
112     {
113         return null;
114     }
115 
116     public String getRequestURI()
117     {
118         return null;
119     }
120 
121     public StringBuffer getRequestURL()
122     {
123         return null;
124     }
125 
126     public String getServletPath()
127     {
128         return null;
129     }
130 
131     public HttpSession getSession(boolean create)
132     {
133         return null;
134     }
135 
136     public HttpSession getSession()
137     {
138         return null;
139     }
140 
141     public boolean isRequestedSessionIdValid()
142     {
143         return false;
144     }
145 
146     public boolean isRequestedSessionIdFromCookie()
147     {
148         return false;
149     }
150 
151     public boolean isRequestedSessionIdFromURL()
152     {
153         return false;
154     }
155 
156     public boolean isRequestedSessionIdFromUrl()
157     {
158         return false;
159     }
160 
161     
162 }