Class AwsProxyServletContextSupplier
java.lang.Object
com.amazonaws.serverless.proxy.jersey.suppliers.AwsProxyServletContextSupplier
- All Implemented Interfaces:
Supplier<javax.servlet.ServletContext>
public class AwsProxyServletContextSupplier
extends Object
implements Supplier<javax.servlet.ServletContext>
Implementation of Jersey's
Factory object for ServletContext objects. This can be used
by Jersey to generate a Servlet context given an AwsProxyRequest event.
ResourceConfig app = new ResourceConfig().packages("my.app.package")
.register(new AbstractBinder() {
@Override
protected void configure() {
bindFactory(AwsProxyServletContextSupplier.class)
.to(ServletContext.class)
.in(RequestScoped.class);
}
});
-
Constructor Summary
Constructors -
Method Summary