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.io.IOException;
18  import java.security.Principal;
19  import java.util.Collection;
20  import java.util.Enumeration;
21  
22  import javax.servlet.ServletException;
23  import javax.servlet.ServletRequest;
24  import javax.servlet.ServletRequestWrapper;
25  import javax.servlet.http.Cookie;
26  import javax.servlet.http.HttpServletRequest;
27  import javax.servlet.http.HttpServletResponse;
28  import javax.servlet.http.HttpSession;
29  import javax.servlet.http.Part;
30  
31  /* ------------------------------------------------------------ */
32  /** Class to tunnel a ServletRequest via a HttpServletRequest
33   */
34  public class ServletRequestHttpWrapper extends ServletRequestWrapper implements HttpServletRequest
35  {
36      public ServletRequestHttpWrapper(ServletRequest request)
37      {
38          super(request);
39      }
40  
41      public String getAuthType()
42      {
43          return null;
44      }
45  
46      public Cookie[] getCookies()
47      {
48          return null;
49      }
50  
51      public long getDateHeader(String name)
52      {
53          return 0;
54      }
55  
56      public String getHeader(String name)
57      {
58          return null;
59      }
60  
61      public Enumeration getHeaders(String name)
62      {
63          return null;
64      }
65  
66      public Enumeration getHeaderNames()
67      {
68          return null;
69      }
70  
71      public int getIntHeader(String name)
72      {
73          return 0;
74      }
75  
76      public String getMethod()
77      {
78          return null;
79      }
80  
81      public String getPathInfo()
82      {
83          return null;
84      }
85  
86      public String getPathTranslated()
87      {
88          return null;
89      }
90  
91      public String getContextPath()
92      {
93          return null;
94      }
95  
96      public String getQueryString()
97      {
98          return null;
99      }
100 
101     public String getRemoteUser()
102     {
103         return null;
104     }
105 
106     public boolean isUserInRole(String role)
107     {
108         return false;
109     }
110 
111     public Principal getUserPrincipal()
112     {
113         return null;
114     }
115 
116     public String getRequestedSessionId()
117     {
118         return null;
119     }
120 
121     public String getRequestURI()
122     {
123         return null;
124     }
125 
126     public StringBuffer getRequestURL()
127     {
128         return null;
129     }
130 
131     public String getServletPath()
132     {
133         return null;
134     }
135 
136     public HttpSession getSession(boolean create)
137     {
138         return null;
139     }
140 
141     public HttpSession getSession()
142     {
143         return null;
144     }
145 
146     public boolean isRequestedSessionIdValid()
147     {
148         return false;
149     }
150 
151     public boolean isRequestedSessionIdFromCookie()
152     {
153         return false;
154     }
155 
156     public boolean isRequestedSessionIdFromURL()
157     {
158         return false;
159     }
160 
161     public boolean isRequestedSessionIdFromUrl()
162     {
163         return false;
164     }
165 
166     /** 
167      * @see javax.servlet.http.HttpServletRequest#authenticate(javax.servlet.http.HttpServletResponse)
168      */
169     public boolean authenticate(HttpServletResponse response) throws IOException, ServletException
170     {
171         return false;
172     }
173 
174     /** 
175      * @see javax.servlet.http.HttpServletRequest#getPart(java.lang.String)
176      */
177     public Part getPart(String name) throws IOException, ServletException
178     {
179         return null;
180     }
181 
182     /** 
183      * @see javax.servlet.http.HttpServletRequest#getParts()
184      */
185     public Collection<Part> getParts() throws IOException, ServletException
186     {
187         return null;
188     }
189 
190     /** 
191      * @see javax.servlet.http.HttpServletRequest#login(java.lang.String, java.lang.String)
192      */
193     public void login(String username, String password) throws ServletException
194     {
195 
196     }
197 
198     /** 
199      * @see javax.servlet.http.HttpServletRequest#logout()
200      */
201     public void logout() throws ServletException
202     {
203         
204     }
205 
206     
207 }