Record Class JSServiceArgs

java.lang.Object
java.lang.Record
org.restheart.polyglot.services.JSServiceArgs

public record JSServiceArgs(String name, String description, String uri, boolean secured, String modulesReplacements, RegisterPlugin.MATCH_POLICY matchPolicy, org.graalvm.polyglot.Source handleSource, Configuration configuration, Optional<com.mongodb.client.MongoClient> mclient, Map<String,String> contextOptions) extends Record
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Constructor Details

    • JSServiceArgs

      public JSServiceArgs(String name, String description, String uri, boolean secured, String modulesReplacements, RegisterPlugin.MATCH_POLICY matchPolicy, org.graalvm.polyglot.Source handleSource, Configuration configuration, Optional<com.mongodb.client.MongoClient> mclient, Map<String,String> contextOptions)
      Creates an instance of a JSServiceArgs record class.
      Parameters:
      name - the value for the name record component
      description - the value for the description record component
      uri - the value for the uri record component
      secured - the value for the secured record component
      modulesReplacements - the value for the modulesReplacements record component
      matchPolicy - the value for the matchPolicy record component
      handleSource - the value for the handleSource record component
      configuration - the value for the configuration record component
      mclient - the value for the mclient record component
      contextOptions - the value for the contextOptions 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 '=='.
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • uri

      public String uri()
      Returns the value of the uri record component.
      Returns:
      the value of the uri record component
    • secured

      public boolean secured()
      Returns the value of the secured record component.
      Returns:
      the value of the secured record component
    • modulesReplacements

      public String modulesReplacements()
      Returns the value of the modulesReplacements record component.
      Returns:
      the value of the modulesReplacements record component
    • matchPolicy

      public RegisterPlugin.MATCH_POLICY matchPolicy()
      Returns the value of the matchPolicy record component.
      Returns:
      the value of the matchPolicy record component
    • handleSource

      public org.graalvm.polyglot.Source handleSource()
      Returns the value of the handleSource record component.
      Returns:
      the value of the handleSource record component
    • configuration

      public Configuration configuration()
      Returns the value of the configuration record component.
      Returns:
      the value of the configuration record component
    • mclient

      public Optional<com.mongodb.client.MongoClient> mclient()
      Returns the value of the mclient record component.
      Returns:
      the value of the mclient record component
    • contextOptions

      public Map<String,String> contextOptions()
      Returns the value of the contextOptions record component.
      Returns:
      the value of the contextOptions record component