Record Class RoutePushContext
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.dataroutes.RoutePushContext
- All Implemented Interfaces:
ResourceAction.ContextObject
public record RoutePushContext(HttpMethod method, URI uri, String actor)
extends Record
implements ResourceAction.ContextObject
Used as the "context object" for push operations that originate from resource CRUD routes.
-
Constructor Summary
ConstructorsConstructorDescriptionRoutePushContext(HttpMethod method, URI uri, String actor) Creates an instance of aRoutePushContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.final booleanIndicates whether some other object is "equal to" this one.static RoutePushContextforRequest(RequestContext requestContext) getActor()final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
RoutePushContext
Creates an instance of aRoutePushContextrecord class.- Parameters:
method- the value for themethodrecord componenturi- the value for theurirecord componentactor- the value for theactorrecord component
-
-
Method Details
-
forRequest
-
getActor
- Specified by:
getActorin interfaceResourceAction.ContextObject
-
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). -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
actor
Returns the value of theactorrecord component.- Returns:
- the value of the
actorrecord component
-