Class RequestModule

java.lang.Object
google.registry.request.RequestModule

@Module public final class RequestModule extends Object
Dagger module for servlets.
  • Constructor Details

    • RequestModule

      public RequestModule(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp)
    • RequestModule

      public RequestModule(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp, AuthResult authResult)
  • Method Details

    • provideGson

      @RequestScope @Provides public static com.google.gson.Gson provideGson()
    • provideJsonBody

      @Provides @OptionalJsonPayload public static Optional<com.google.gson.JsonElement> provideJsonBody(jakarta.servlet.http.HttpServletRequest req, com.google.gson.Gson gson)