Class EndpointId
- java.lang.Object
- org.springframework.boot.actuate.endpoint.EndpointId
public final class EndpointId extends Object
An identifier for an actuator endpoint. Endpoint IDs may contain only letters, numbers'.'
and'-'
. They must begin with a lower-case letter. Case and syntax characters are ignored when comparing endpoint IDs.- Since:
- 2.0.6
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static EndpointId
fromPropertyValue(String value)
Factory method to create a newEndpointId
from a property value.int
hashCode()
static EndpointId
of(String value)
Factory method to create a newEndpointId
of the specified value.String
toLowerCaseString()
Return a lower-case version of the endpoint ID.String
toString()
Method Detail
toLowerCaseString
public String toLowerCaseString()
Return a lower-case version of the endpoint ID.- Returns:
- the lower-case endpoint ID
of
public static EndpointId of(String value)
Factory method to create a newEndpointId
of the specified value.- Parameters:
value
- the endpoint ID value- Returns:
- an
EndpointId
instance
fromPropertyValue
public static EndpointId fromPropertyValue(String value)
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