Skip to content

Commit

Permalink
bump servlet API
Browse files Browse the repository at this point in the history
  • Loading branch information
renat-nosto committed Apr 4, 2024
1 parent 50c1cb9 commit 0628a94
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
2 changes: 1 addition & 1 deletion framework/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ require: &allDependencies
- net.sf.jsr107cache -> jsr107cache 1.1
- net.sf.oval -> oval 3.2.1
- oauth.signpost -> signpost-core 1.2.1.2
- org.apache.geronimo.specs -> geronimo-servlet_2.5_spec 1.2
- javax.servlet -> javax.servlet-api 3.0.1
- org.apache.ivy -> ivy 2.5.2
- org.bouncycastle -> bcprov-jdk18on 1.77
- org.bouncycastle -> bcpkix-jdk18on 1.77
Expand Down
Binary file removed framework/lib/geronimo-servlet_2.5_spec-1.2.jar
Binary file not shown.
Binary file added framework/lib/javax.servlet-api-3.0.1.jar
Binary file not shown.
57 changes: 57 additions & 0 deletions framework/test-src/play/server/ServletWrapperTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,23 @@
import org.junit.Before;
import org.junit.Test;

import javax.servlet.AsyncContext;
import javax.servlet.DispatcherType;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.http.Part;
import java.io.BufferedReader;
import java.io.IOException;
import java.security.Principal;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Locale;
Expand Down Expand Up @@ -200,6 +209,26 @@ public boolean isRequestedSessionIdFromUrl() {
throw new RuntimeException("Method not implemented");
}

public boolean authenticate(HttpServletResponse httpServletResponse) throws IOException, ServletException {
throw new RuntimeException("Method not implemented");
}

public void login(String s, String s1) throws ServletException {
throw new RuntimeException("Method not implemented");
}

public void logout() throws ServletException {
throw new RuntimeException("Method not implemented");
}

public Collection<Part> getParts() throws IOException, ServletException {
throw new RuntimeException("Method not implemented");
}

public Part getPart(String s) throws IOException, ServletException {
throw new RuntimeException("Method not implemented");
}

@Override
public boolean isRequestedSessionIdValid() {
throw new RuntimeException("Method not implemented");
Expand Down Expand Up @@ -255,6 +284,34 @@ public int getLocalPort() {
throw new RuntimeException("Method not implemented");
}

public ServletContext getServletContext() {
throw new RuntimeException("Method not implemented");
}

public AsyncContext startAsync() throws IllegalStateException {
throw new RuntimeException("Method not implemented");
}

public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException {
throw new RuntimeException("Method not implemented");
}

public boolean isAsyncStarted() {
throw new RuntimeException("Method not implemented");
}

public boolean isAsyncSupported() {
throw new RuntimeException("Method not implemented");
}

public AsyncContext getAsyncContext() {
throw new RuntimeException("Method not implemented");
}

public DispatcherType getDispatcherType() {
throw new RuntimeException("Method not implemented");
}

@Override
public Locale getLocale() {
throw new RuntimeException("Method not implemented");
Expand Down

0 comments on commit 0628a94

Please sign in to comment.