Record Class ResourceServerProperties
java.lang.Object
java.lang.Record
com.irurueta.authserver.serviceclient.infrastructure.resourceserver.ResourceServerProperties
- Record Components:
baseUri- base URI of the resource server (service-client.resource-server.base-uri), used when nothing is configured:http://localhost:8081.
@ConfigurationProperties(prefix="service-client.resource-server")
public record ResourceServerProperties(URI baseUri)
extends Record
Where the resource server is.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseUri()Returns the value of thebaseUrirecord 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.
-
Field Details
-
baseUri
The field for thebaseUrirecord component. -
DEFAULT_BASE_URI
Base URI used when nothing is configured.
-
-
Constructor Details
-
ResourceServerProperties
Applies the default base URI.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
baseUri
Returns the value of thebaseUrirecord component.- Returns:
- the value of the
baseUrirecord component
-