类 AbstractEndpointMvcAdapter<E extends Endpoint<?>>
- java.lang.Object
- org.springframework.boot.actuate.endpoint.mvc.AbstractEndpointMvcAdapter<E>
- 类型参数:
E
- The delegate endpoint
- 所有已实现的接口:
MvcEndpoint
,NamedMvcEndpoint
- 直接已知子类:
EndpointMvcAdapter
,HealthMvcEndpoint
public abstract class AbstractEndpointMvcAdapter<E extends Endpoint<?>> extends Object implements NamedMvcEndpoint
Abstract base class forMvcEndpoint
implementations.- 从以下版本开始:
- 1.3.0
字段概要
从接口继承的字段 org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
DISABLED_RESPONSE
构造器概要
构造器 构造器 说明 AbstractEndpointMvcAdapter(E delegate)
Create a newEndpointMvcAdapter
.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 E
getDelegate()
protected org.springframework.http.ResponseEntity<?>
getDisabledResponse()
Returns the response that should be returned when the endpoint is disabled.Class<? extends Endpoint>
getEndpointType()
Return the type ofEndpoint
exposed, ornull
if thisMvcEndpoint
exposes information that cannot be represented as a traditionalEndpoint
.String
getName()
Return the logical name of the endpoint.String
getPath()
Return the MVC path of the endpoint.protected Object
invoke()
boolean
isSensitive()
Return if the endpoint exposes sensitive information.void
setPath(String path)
构造器详细资料
AbstractEndpointMvcAdapter
public AbstractEndpointMvcAdapter(E delegate)
Create a newEndpointMvcAdapter
.- 参数:
delegate
- the underlyingEndpoint
to adapt.
方法详细资料
getDelegate
public E getDelegate()
getName
public String getName()
从接口复制的说明:NamedMvcEndpoint
Return the logical name of the endpoint. Names should be non-null, non-empty, alpha-numeric values.- 指定者:
getName
在接口中NamedMvcEndpoint
- 返回:
- the logical name of the endpoint
getPath
public String getPath()
从接口复制的说明:MvcEndpoint
Return the MVC path of the endpoint.- 指定者:
getPath
在接口中MvcEndpoint
- 返回:
- the endpoint path
isSensitive
public boolean isSensitive()
从接口复制的说明:MvcEndpoint
Return if the endpoint exposes sensitive information.- 指定者:
isSensitive
在接口中MvcEndpoint
- 返回:
- if the endpoint is sensitive
getEndpointType
public Class<? extends Endpoint> getEndpointType()
从接口复制的说明:MvcEndpoint
Return the type ofEndpoint
exposed, ornull
if thisMvcEndpoint
exposes information that cannot be represented as a traditionalEndpoint
.- 指定者:
getEndpointType
在接口中MvcEndpoint
- 返回:
- the endpoint type
getDisabledResponse
protected org.springframework.http.ResponseEntity<?> getDisabledResponse()
Returns the response that should be returned when the endpoint is disabled.- 返回:
- The response to be returned when the endpoint is disabled
- 从以下版本开始:
- 1.2.4
- 另请参阅:
Endpoint.isEnabled()