Package org.restheart.configuration
Record Class StaticResource
java.lang.Object
java.lang.Record
org.restheart.configuration.StaticResource
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStaticResource(String what, String where, String welcomeFile, boolean embedded) Creates an instance of aStaticResourcerecord class.StaticResource(Map<String, Object> conf, boolean silent) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<StaticResource> booleanembedded()Returns the value of theembeddedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thewelcomeFilerecord component.what()Returns the value of thewhatrecord component.where()Returns the value of thewhererecord component.
-
Field Details
-
STATIC_RESOURCES_MOUNTS_KEY
- See Also:
-
STATIC_RESOURCES_MOUNT_WHAT_KEY
- See Also:
-
STATIC_RESOURCES_MOUNT_WHERE_KEY
- See Also:
-
STATIC_RESOURCES_MOUNT_WELCOME_FILE_KEY
- See Also:
-
STATIC_RESOURCES_MOUNT_EMBEDDED_KEY
- See Also:
-
-
Constructor Details
-
StaticResource
-
StaticResource
Creates an instance of aStaticResourcerecord class.- Parameters:
what- the value for thewhatrecord componentwhere- the value for thewhererecord componentwelcomeFile- the value for thewelcomeFilerecord componentembedded- the value for theembeddedrecord component
-
-
Method Details
-
build
-
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 '=='. -
what
Returns the value of thewhatrecord component.- Returns:
- the value of the
whatrecord component
-
where
Returns the value of thewhererecord component.- Returns:
- the value of the
whererecord component
-
welcomeFile
Returns the value of thewelcomeFilerecord component.- Returns:
- the value of the
welcomeFilerecord component
-
embedded
public boolean embedded()Returns the value of theembeddedrecord component.- Returns:
- the value of the
embeddedrecord component
-