View Javadoc

1   //
2   //  ========================================================================
3   //  Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
4   //  ------------------------------------------------------------------------
5   //  All rights reserved. This program and the accompanying materials
6   //  are made available under the terms of the Eclipse Public License v1.0
7   //  and Apache License v2.0 which accompanies this distribution.
8   //
9   //      The Eclipse Public License is available at
10  //      http://www.eclipse.org/legal/epl-v10.html
11  //
12  //      The Apache License v2.0 is available at
13  //      http://www.opensource.org/licenses/apache2.0.php
14  //
15  //  You may elect to redistribute this code under either of these licenses.
16  //  ========================================================================
17  //
18  
19  
20  package org.eclipse.jetty.server;
21  
22  import java.security.Principal;
23  import java.util.Enumeration;
24  
25  import javax.servlet.ServletRequest;
26  import javax.servlet.ServletRequestWrapper;
27  import javax.servlet.http.Cookie;
28  import javax.servlet.http.HttpServletRequest;
29  import javax.servlet.http.HttpSession;
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 }