类 AdditionalHealthEndpointPath
java.lang.Object
org.springframework.boot.actuate.health.AdditionalHealthEndpointPath
Value object that represents an additional path for a
HealthEndpointGroup.- 从以下版本开始:
- 2.6.0
- 作者:
- Phillip Webb, Madhura Bhave
-
方法概要
修饰符和类型方法说明booleanstatic AdditionalHealthEndpointPathCreates anAdditionalHealthEndpointPathfrom the given input.Returns theWebServerNamespaceassociated with this path.getValue()Returns the value corresponding to this path.inthashCode()booleanhasNamespace(WebServerNamespace webServerNamespace) Returnstrueif this path has the givenWebServerNamespace.static AdditionalHealthEndpointPathof(WebServerNamespace webServerNamespace, String value) Creates anAdditionalHealthEndpointPathfrom the givenWebServerNamespaceand value.toString()
-
方法详细资料
-
getNamespace
Returns theWebServerNamespaceassociated with this path.- 返回:
- the server namespace
-
getValue
Returns the value corresponding to this path.- 返回:
- the path
-
hasNamespace
Returnstrueif this path has the givenWebServerNamespace.- 参数:
webServerNamespace- the server namespace- 返回:
- the new instance
-
equals
-
hashCode
public int hashCode() -
toString
-
from
Creates anAdditionalHealthEndpointPathfrom 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`.- 参数:
value- the value to parse- 返回:
- the new instance
-
of
Creates anAdditionalHealthEndpointPathfrom the givenWebServerNamespaceand value.- 参数:
webServerNamespace- the server namespacevalue- the value- 返回:
- the new instance
-