Class EndpointId
java.lang.Object
org.springframework.boot.actuate.endpoint.EndpointId
An identifier for an actuator endpoint. Endpoint IDs may contain only letters and
numbers. They must begin with a lower-case letter. Case and syntax characters are
ignored when comparing endpoint IDs.
- Since:
- 2.0.6
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static EndpointId
fromPropertyValue
(String value) Factory method to create a newEndpointId
from a property value.int
hashCode()
static EndpointId
Factory method to create a newEndpointId
of the specified value.static EndpointId
of
(Environment environment, String value) Factory method to create a newEndpointId
of the specified value.Return a lower-case version of the endpoint ID.toString()
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toLowerCaseString
Return a lower-case version of the endpoint ID.- Returns:
- the lower-case endpoint ID
-
toString
-
of
Factory method to create a newEndpointId
of the specified value.- Parameters:
value
- the endpoint ID value- Returns:
- an
EndpointId
instance
-
of
Factory method to create a newEndpointId
of the specified value. This variant will respect themanagement.endpoints.migrate-legacy-names
property if it has been set in theEnvironment
.- Parameters:
environment
- the Spring environmentvalue
- the endpoint ID value- Returns:
- an
EndpointId
instance - Since:
- 2.2.0
-
fromPropertyValue
Factory method to create a newEndpointId
from a property value. More lenient thanof(String)
to allow for common "relaxed" property variants.- Parameters:
value
- the property value to convert- Returns:
- an
EndpointId
instance
-