Record Class InvocationImpl

java.lang.Object
java.lang.Record
org.infinispan.rest.framework.impl.InvocationImpl
All Implemented Interfaces:
Invocation

public record InvocationImpl(ResourceDescription resourceGroup, Set<Method> methods, Set<String> paths, Function<RestRequest, CompletionStage<RestResponse>> handler, String action, String operationId, String name, boolean anonymous, AuthorizationPermission permission, boolean deprecated, boolean requireCacheManagerStart, AuditContext auditContext, RequestBody requestBody, Map<io.netty.handler.codec.http.HttpResponseStatus, ResponseContent> responses, List<Parameter> parameters) extends Record implements Invocation
Since:
10.0
  • Constructor Details

    • InvocationImpl

      public InvocationImpl(ResourceDescription resourceGroup, Set<Method> methods, Set<String> paths, Function<RestRequest, CompletionStage<RestResponse>> handler, @Deprecated String action, String operationId, String name, boolean anonymous, AuthorizationPermission permission, boolean deprecated, boolean requireCacheManagerStart, AuditContext auditContext, RequestBody requestBody, Map<io.netty.handler.codec.http.HttpResponseStatus, ResponseContent> responses, List<Parameter> parameters)
      Creates an instance of a InvocationImpl record class.
      Parameters:
      resourceGroup - the value for the resourceGroup record component
      methods - the value for the methods record component
      paths - the value for the paths record component
      handler - the value for the handler record component
      action - the value for the action record component
      operationId - the value for the operationId record component
      name - the value for the name record component
      anonymous - the value for the anonymous record component
      permission - the value for the permission record component
      deprecated - the value for the deprecated record component
      requireCacheManagerStart - the value for the requireCacheManagerStart record component
      auditContext - the value for the auditContext record component
      requestBody - the value for the requestBody record component
      responses - the value for the responses record component
      parameters - the value for the parameters record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • resourceGroup

      public ResourceDescription resourceGroup()
      Returns the value of the resourceGroup record component.
      Specified by:
      resourceGroup in interface Invocation
      Returns:
      the value of the resourceGroup record component
    • methods

      public Set<Method> methods()
      Returns the value of the methods record component.
      Specified by:
      methods in interface Invocation
      Returns:
      the value of the methods record component
    • paths

      public Set<String> paths()
      Returns the value of the paths record component.
      Specified by:
      paths in interface Invocation
      Returns:
      the value of the paths record component
    • handler

      Returns the value of the handler record component.
      Specified by:
      handler in interface Invocation
      Returns:
      the value of the handler record component
    • action

      @Deprecated public String action()
      Deprecated.
      Returns the value of the action record component.
      Specified by:
      action in interface Invocation
      Returns:
      the value of the action record component
    • operationId

      public String operationId()
      Returns the value of the operationId record component.
      Specified by:
      operationId in interface Invocation
      Returns:
      the value of the operationId record component
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface Invocation
      Returns:
      the value of the name record component
    • anonymous

      public boolean anonymous()
      Returns the value of the anonymous record component.
      Specified by:
      anonymous in interface Invocation
      Returns:
      the value of the anonymous record component
    • permission

      public AuthorizationPermission permission()
      Returns the value of the permission record component.
      Specified by:
      permission in interface Invocation
      Returns:
      the value of the permission record component
    • deprecated

      public boolean deprecated()
      Returns the value of the deprecated record component.
      Specified by:
      deprecated in interface Invocation
      Returns:
      the value of the deprecated record component
    • requireCacheManagerStart

      public boolean requireCacheManagerStart()
      Returns the value of the requireCacheManagerStart record component.
      Specified by:
      requireCacheManagerStart in interface Invocation
      Returns:
      the value of the requireCacheManagerStart record component
    • auditContext

      public AuditContext auditContext()
      Returns the value of the auditContext record component.
      Specified by:
      auditContext in interface Invocation
      Returns:
      the value of the auditContext record component
    • requestBody

      public RequestBody requestBody()
      Returns the value of the requestBody record component.
      Specified by:
      requestBody in interface Invocation
      Returns:
      the value of the requestBody record component
    • responses

      public Map<io.netty.handler.codec.http.HttpResponseStatus, ResponseContent> responses()
      Returns the value of the responses record component.
      Specified by:
      responses in interface Invocation
      Returns:
      the value of the responses record component
    • parameters

      public List<Parameter> parameters()
      Returns the value of the parameters record component.
      Specified by:
      parameters in interface Invocation
      Returns:
      the value of the parameters record component