Record Class ConsoleApiParams
java.lang.Object
java.lang.Record
google.registry.ui.server.console.ConsoleApiParams
public record ConsoleApiParams(jakarta.servlet.http.HttpServletRequest request, Response response, AuthResult authResult, SendEmailUtils sendEmailUtils, XsrfTokenManager xsrfTokenManager, com.google.gson.Gson gson)
extends Record
Groups necessary dependencies for Console API actions *
-
Constructor Summary
ConstructorDescriptionConsoleApiParams
(jakarta.servlet.http.HttpServletRequest request, Response response, AuthResult authResult, SendEmailUtils sendEmailUtils, XsrfTokenManager xsrfTokenManager, com.google.gson.Gson gson) Creates an instance of aConsoleApiParams
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthResult
record component.static ConsoleApiParams
create
(jakarta.servlet.http.HttpServletRequest request, Response response, AuthResult authResult, SendEmailUtils sendEmailUtils, XsrfTokenManager xsrfTokenManager, com.google.gson.Gson gson) final boolean
Indicates whether some other object is "equal to" this one.com.google.gson.Gson
gson()
Returns the value of thegson
record component.final int
hashCode()
Returns a hash code value for this object.jakarta.servlet.http.HttpServletRequest
request()
Returns the value of therequest
record component.response()
Returns the value of theresponse
record component.Returns the value of thesendEmailUtils
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thexsrfTokenManager
record component.
-
Constructor Details
-
ConsoleApiParams
public ConsoleApiParams(jakarta.servlet.http.HttpServletRequest request, Response response, AuthResult authResult, SendEmailUtils sendEmailUtils, XsrfTokenManager xsrfTokenManager, com.google.gson.Gson gson) Creates an instance of aConsoleApiParams
record class.- Parameters:
request
- the value for therequest
record componentresponse
- the value for theresponse
record componentauthResult
- the value for theauthResult
record componentsendEmailUtils
- the value for thesendEmailUtils
record componentxsrfTokenManager
- the value for thexsrfTokenManager
record componentgson
- the value for thegson
record component
-
-
Method Details
-
create
public static ConsoleApiParams create(jakarta.servlet.http.HttpServletRequest request, Response response, AuthResult authResult, SendEmailUtils sendEmailUtils, XsrfTokenManager xsrfTokenManager, com.google.gson.Gson gson) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
request
public jakarta.servlet.http.HttpServletRequest request()Returns the value of therequest
record component.- Returns:
- the value of the
request
record component
-
response
Returns the value of theresponse
record component.- Returns:
- the value of the
response
record component
-
authResult
Returns the value of theauthResult
record component.- Returns:
- the value of the
authResult
record component
-
sendEmailUtils
Returns the value of thesendEmailUtils
record component.- Returns:
- the value of the
sendEmailUtils
record component
-
xsrfTokenManager
Returns the value of thexsrfTokenManager
record component.- Returns:
- the value of the
xsrfTokenManager
record component
-
gson
public com.google.gson.Gson gson()Returns the value of thegson
record component.- Returns:
- the value of the
gson
record component
-