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 booleanequals(Object obj)static EndpointIdfromPropertyValue(String value)Factory method to create a newEndpointIdfrom a property value.inthashCode()static EndpointIdof(String value)Factory method to create a newEndpointIdof the specified value.StringtoLowerCaseString()Return a lower-case version of the endpoint ID.StringtoString()
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 newEndpointIdof the specified value.- Parameters:
value- the endpoint ID value- Returns:
- an
EndpointIdinstance
fromPropertyValue
public static EndpointId fromPropertyValue(String value)
Factory method to create a newEndpointIdfrom a property value. More lenient thanof(String)to allow for common "relaxed" property variants.- Parameters:
value- the property value to convert- Returns:
- an
EndpointIdinstance