Record Class Routes.AuthenticatedRequestContext
java.lang.Object
java.lang.Record
com.inductiveautomation.perspective.gateway.comm.Routes.AuthenticatedRequestContext
- Enclosing class:
- Routes
public static record Routes.AuthenticatedRequestContext(RequestContext requestContext, jakarta.servlet.http.HttpServletResponse httpServletResponse, InternalSession session, PerspectiveProject project)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticatedRequestContext(RequestContext requestContext, jakarta.servlet.http.HttpServletResponse httpServletResponse, InternalSession session, PerspectiveProject project) Creates an instance of aAuthenticatedRequestContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jakarta.servlet.http.HttpServletResponseReturns the value of thehttpServletResponserecord component.project()Returns the value of theprojectrecord component.Returns the value of therequestContextrecord component.session()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuthenticatedRequestContext
public AuthenticatedRequestContext(RequestContext requestContext, jakarta.servlet.http.HttpServletResponse httpServletResponse, InternalSession session, PerspectiveProject project) Creates an instance of aAuthenticatedRequestContextrecord class.- Parameters:
requestContext- the value for therequestContextrecord componenthttpServletResponse- the value for thehttpServletResponserecord componentsession- the value for thesessionrecord componentproject- the value for theprojectrecord component
-
-
Method Details
-
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). -
requestContext
Returns the value of therequestContextrecord component.- Returns:
- the value of the
requestContextrecord component
-
httpServletResponse
public jakarta.servlet.http.HttpServletResponse httpServletResponse()Returns the value of thehttpServletResponserecord component.- Returns:
- the value of the
httpServletResponserecord component
-
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
project
Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-