Package google.registry.request
Class RequestModule
java.lang.Object
google.registry.request.RequestModule
Dagger module for servlets.
-
Constructor Summary
ConstructorDescriptionRequestModule
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) RequestModule
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp, AuthResult authResult) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.Gson
static Optional
<com.google.gson.JsonElement> provideJsonBody
(jakarta.servlet.http.HttpServletRequest req, com.google.gson.Gson gson)
-
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
-
provideJsonBody
@Provides @OptionalJsonPayload public static Optional<com.google.gson.JsonElement> provideJsonBody(jakarta.servlet.http.HttpServletRequest req, com.google.gson.Gson gson)
-