public class AwsProxyServletContextSupplier
extends java.lang.Object
implements java.util.function.Supplier<javax.servlet.ServletContext>
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 and Description |
|---|
AwsProxyServletContextSupplier() |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.ServletContext |
get() |
Copyright © 2018. All Rights Reserved.