Class AdditionalHealthEndpointPath
java.lang.Object
org.springframework.boot.actuate.health.AdditionalHealthEndpointPath
Value object that represents an additional path for a
HealthEndpointGroup
.- Since:
- 2.6.0
- Author:
- Phillip Webb, Madhura Bhave
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static AdditionalHealthEndpointPath
Creates anAdditionalHealthEndpointPath
from the given input.Returns theWebServerNamespace
associated with this path.getValue()
Returns the value corresponding to this path.int
hashCode()
boolean
hasNamespace
(WebServerNamespace webServerNamespace) Returnstrue
if this path has the givenWebServerNamespace
.static AdditionalHealthEndpointPath
of
(WebServerNamespace webServerNamespace, String value) Creates anAdditionalHealthEndpointPath
from the givenWebServerNamespace
and value.toString()
-
Method Details
-
getNamespace
Returns theWebServerNamespace
associated with this path.- Returns:
- the server namespace
-
getValue
Returns the value corresponding to this path.- Returns:
- the path
-
hasNamespace
Returnstrue
if this path has the givenWebServerNamespace
.- Parameters:
webServerNamespace
- the server namespace- Returns:
- the new instance
-
equals
-
hashCode
public int hashCode() -
toString
-
from
Creates anAdditionalHealthEndpointPath
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
Creates anAdditionalHealthEndpointPath
from the givenWebServerNamespace
and value.- Parameters:
webServerNamespace
- the server namespacevalue
- the value- Returns:
- the new instance
-