Record Class ServiceRouteDetails.RouteEntry

java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.data.ServiceRouteDetails.RouteEntry
Record Components:
methodName - Internal method name (e.g., "_add" or "getById")
httpVerb - HTTP method (e.g., "GET", "POST", "PUT", "DELETE", "PATCH", "HEAD")
uriPattern - URI path pattern (e.g., "/users/{id}")
paramBindings - Parameter extraction bindings
returnTypeFqn - Return type FQN (e.g., "org.ek9.lang::HTTPResponse")
isSanitized - True if any parameter is marked sanitized
securityGateFqn - FQN of the SecurityGate function, or null if no gate
corsPolicyFqn - FQN of the CORSPolicy function, or null if no CORS policy
Enclosing class:
ServiceRouteDetails

public static record ServiceRouteDetails.RouteEntry(String methodName, String httpVerb, String uriPattern, List<ServiceRouteDetails.ParamBinding> paramBindings, String returnTypeFqn, boolean isSanitized, @Nullable String securityGateFqn, @Nullable String corsPolicyFqn) extends Record
A single service operation's HTTP route metadata.
  • Constructor Details

  • 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.
    • methodName

      public String methodName()
      Returns the value of the methodName record component.
      Returns:
      the value of the methodName record component
    • httpVerb

      public String httpVerb()
      Returns the value of the httpVerb record component.
      Returns:
      the value of the httpVerb record component
    • uriPattern

      public String uriPattern()
      Returns the value of the uriPattern record component.
      Returns:
      the value of the uriPattern record component
    • paramBindings

      public List<ServiceRouteDetails.ParamBinding> paramBindings()
      Returns the value of the paramBindings record component.
      Returns:
      the value of the paramBindings record component
    • returnTypeFqn

      public String returnTypeFqn()
      Returns the value of the returnTypeFqn record component.
      Returns:
      the value of the returnTypeFqn record component
    • isSanitized

      public boolean isSanitized()
      Returns the value of the isSanitized record component.
      Returns:
      the value of the isSanitized record component
    • securityGateFqn

      @Nullable public String securityGateFqn()
      Returns the value of the securityGateFqn record component.
      Returns:
      the value of the securityGateFqn record component
    • corsPolicyFqn

      @Nullable public String corsPolicyFqn()
      Returns the value of the corsPolicyFqn record component.
      Returns:
      the value of the corsPolicyFqn record component