Class AdditionalHealthEndpointPath

java.lang.Object
org.springframework.boot.health.actuate.endpoint.AdditionalHealthEndpointPath

public final class AdditionalHealthEndpointPath extends Object
Value object that represents an additional path for a HealthEndpointGroup.
Since:
4.0.0
  • Method Details

    • getNamespace

      public org.springframework.boot.actuate.endpoint.web.WebServerNamespace getNamespace()
      Returns the WebServerNamespace associated with this path.
      Returns:
      the server namespace
    • getValue

      public String getValue()
      Returns the value corresponding to this path.
      Returns:
      the path
    • hasNamespace

      public boolean hasNamespace(org.springframework.boot.actuate.endpoint.web.WebServerNamespace webServerNamespace)
      Returns true if this path has the given WebServerNamespace.
      Parameters:
      webServerNamespace - the server namespace
      Returns:
      the new instance
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • from

      public static AdditionalHealthEndpointPath from(String value)
      Creates an AdditionalHealthEndpointPath from the given input. The input must contain a prefix and value separated by a `:`. The value must be limited to one path segment. For example, `server:/healthz`.
      Parameters:
      value - the value to parse
      Returns:
      the new instance
    • of

      public static AdditionalHealthEndpointPath of(org.springframework.boot.actuate.endpoint.web.WebServerNamespace webServerNamespace, String value)
      Creates an AdditionalHealthEndpointPath from the given WebServerNamespace and value.
      Parameters:
      webServerNamespace - the server namespace
      value - the value
      Returns:
      the new instance