Class AwsProxyServletResponseSupplier

java.lang.Object
com.amazonaws.serverless.proxy.jersey.suppliers.AwsProxyServletResponseSupplier
All Implemented Interfaces:
Supplier<javax.servlet.http.HttpServletResponse>

public class AwsProxyServletResponseSupplier extends Object implements Supplier<javax.servlet.http.HttpServletResponse>
Implementation of Jersey's Factory object for HttpServletResponse objects. This can be used to write data directly to the servlet response for the method, without using Jersey's ContainerResponse
 
     ResourceConfig app = new ResourceConfig().packages("my.app.package")
         .register(new AbstractBinder() {
             @Override
             protected void configure() {
                 bindFactory(AwsProxyServletResponseSupplier.class)
                     .to(HttpServletResponse.class)
                     .in(RequestScoped.class);
            }
       });
 
 
  • Constructor Details

    • AwsProxyServletResponseSupplier

      public AwsProxyServletResponseSupplier()
  • Method Details

    • get

      public javax.servlet.http.HttpServletResponse get()
      Specified by:
      get in interface Supplier<javax.servlet.http.HttpServletResponse>