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