类 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 and numbers. They must begin with a lower-case letter. Case and syntax characters are ignored when comparing endpoint IDs.
从以下版本开始:
2.0.6
作者:
Phillip Webb
  • 方法详细资料

    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toLowerCaseString

      public String toLowerCaseString()
      Return a lower-case version of the endpoint ID.
      返回:
      the lower-case endpoint ID
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • of

      public static EndpointId of(String value)
      Factory method to create a new EndpointId of the specified value.
      参数:
      value - the endpoint ID value
      返回:
      an EndpointId instance
    • of

      public static EndpointId of(Environment environment, String value)
      Factory method to create a new EndpointId of the specified value. This variant will respect the management.endpoints.migrate-legacy-names property if it has been set in the Environment.
      参数:
      environment - the Spring environment
      value - the endpoint ID value
      返回:
      an EndpointId instance
      从以下版本开始:
      2.2.0
    • fromPropertyValue

      public static EndpointId fromPropertyValue(String value)
      Factory method to create a new EndpointId from a property value. More lenient than of(String) to allow for common "relaxed" property variants.
      参数:
      value - the property value to convert
      返回:
      an EndpointId instance