Skip to content

Commit 4567dba

Browse files
authored
bump servlet API (#72)
1 parent 470f77c commit 4567dba

File tree

4 files changed

+58
-1
lines changed

4 files changed

+58
-1
lines changed

framework/dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ require: &allDependencies
4747
- net.sf.jsr107cache -> jsr107cache 1.1
4848
- net.sf.oval -> oval 3.2.1
4949
- oauth.signpost -> signpost-core 1.2.1.2
50-
- org.apache.geronimo.specs -> geronimo-servlet_2.5_spec 1.2
50+
- javax.servlet -> javax.servlet-api 3.0.1
5151
- org.apache.ivy -> ivy 2.5.2
5252
- org.bouncycastle -> bcprov-jdk18on 1.77
5353
- org.bouncycastle -> bcpkix-jdk18on 1.77
-68.9 KB
Binary file not shown.
83.4 KB
Binary file not shown.

framework/test-src/play/server/ServletWrapperTest.java

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,23 @@
33
import org.junit.Before;
44
import org.junit.Test;
55

6+
import javax.servlet.AsyncContext;
7+
import javax.servlet.DispatcherType;
68
import javax.servlet.RequestDispatcher;
9+
import javax.servlet.ServletContext;
10+
import javax.servlet.ServletException;
711
import javax.servlet.ServletInputStream;
12+
import javax.servlet.ServletRequest;
13+
import javax.servlet.ServletResponse;
814
import javax.servlet.http.Cookie;
915
import javax.servlet.http.HttpServletRequest;
16+
import javax.servlet.http.HttpServletResponse;
1017
import javax.servlet.http.HttpSession;
18+
import javax.servlet.http.Part;
1119
import java.io.BufferedReader;
1220
import java.io.IOException;
1321
import java.security.Principal;
22+
import java.util.Collection;
1423
import java.util.Enumeration;
1524
import java.util.HashMap;
1625
import java.util.Locale;
@@ -200,6 +209,26 @@ public boolean isRequestedSessionIdFromUrl() {
200209
throw new RuntimeException("Method not implemented");
201210
}
202211

212+
public boolean authenticate(HttpServletResponse httpServletResponse) throws IOException, ServletException {
213+
throw new RuntimeException("Method not implemented");
214+
}
215+
216+
public void login(String s, String s1) throws ServletException {
217+
throw new RuntimeException("Method not implemented");
218+
}
219+
220+
public void logout() throws ServletException {
221+
throw new RuntimeException("Method not implemented");
222+
}
223+
224+
public Collection<Part> getParts() throws IOException, ServletException {
225+
throw new RuntimeException("Method not implemented");
226+
}
227+
228+
public Part getPart(String s) throws IOException, ServletException {
229+
throw new RuntimeException("Method not implemented");
230+
}
231+
203232
@Override
204233
public boolean isRequestedSessionIdValid() {
205234
throw new RuntimeException("Method not implemented");
@@ -255,6 +284,34 @@ public int getLocalPort() {
255284
throw new RuntimeException("Method not implemented");
256285
}
257286

287+
public ServletContext getServletContext() {
288+
throw new RuntimeException("Method not implemented");
289+
}
290+
291+
public AsyncContext startAsync() throws IllegalStateException {
292+
throw new RuntimeException("Method not implemented");
293+
}
294+
295+
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException {
296+
throw new RuntimeException("Method not implemented");
297+
}
298+
299+
public boolean isAsyncStarted() {
300+
throw new RuntimeException("Method not implemented");
301+
}
302+
303+
public boolean isAsyncSupported() {
304+
throw new RuntimeException("Method not implemented");
305+
}
306+
307+
public AsyncContext getAsyncContext() {
308+
throw new RuntimeException("Method not implemented");
309+
}
310+
311+
public DispatcherType getDispatcherType() {
312+
throw new RuntimeException("Method not implemented");
313+
}
314+
258315
@Override
259316
public Locale getLocale() {
260317
throw new RuntimeException("Method not implemented");

0 commit comments

Comments
 (0)