Package org.restheart.polyglot.services
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 Summary
ConstructorsConstructorDescriptionJSServiceArgs(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 aJSServiceArgsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationrecord component.Returns the value of thecontextOptionsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.org.graalvm.polyglot.SourceReturns the value of thehandleSourcerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thematchPolicyrecord component.Optional<com.mongodb.client.MongoClient> mclient()Returns the value of themclientrecord component.Returns the value of themodulesReplacementsrecord component.name()Returns the value of thenamerecord component.booleansecured()Returns the value of thesecuredrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
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 aJSServiceArgsrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenturi- the value for theurirecord componentsecured- the value for thesecuredrecord componentmodulesReplacements- the value for themodulesReplacementsrecord componentmatchPolicy- the value for thematchPolicyrecord componenthandleSource- the value for thehandleSourcerecord componentconfiguration- the value for theconfigurationrecord componentmclient- the value for themclientrecord componentcontextOptions- the value for thecontextOptionsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
secured
public boolean secured()Returns the value of thesecuredrecord component.- Returns:
- the value of the
securedrecord component
-
modulesReplacements
Returns the value of themodulesReplacementsrecord component.- Returns:
- the value of the
modulesReplacementsrecord component
-
matchPolicy
Returns the value of thematchPolicyrecord component.- Returns:
- the value of the
matchPolicyrecord component
-
handleSource
public org.graalvm.polyglot.Source handleSource()Returns the value of thehandleSourcerecord component.- Returns:
- the value of the
handleSourcerecord component
-
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
mclient
Returns the value of themclientrecord component.- Returns:
- the value of the
mclientrecord component
-
contextOptions
Returns the value of thecontextOptionsrecord component.- Returns:
- the value of the
contextOptionsrecord component
-