类 AbstractMvcEndpoint
- java.lang.Object
- org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
- org.springframework.boot.actuate.endpoint.mvc.AbstractMvcEndpoint
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,MvcEndpoint
,org.springframework.context.EnvironmentAware
,org.springframework.web.servlet.config.annotation.WebMvcConfigurer
- 直接已知子类:
AbstractNamedMvcEndpoint
public abstract class AbstractMvcEndpoint extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter implements MvcEndpoint, org.springframework.context.EnvironmentAware
Abstract base class forMvcEndpoint
implementations without a backingEndpoint
.- 从以下版本开始:
- 1.4.0
字段概要
从接口继承的字段 org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
DISABLED_RESPONSE
构造器概要
构造器 构造器 说明 AbstractMvcEndpoint(String path, boolean sensitive)
AbstractMvcEndpoint(String path, boolean sensitive, boolean enabled)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Class<? extends Endpoint>
getEndpointType()
Return the type ofEndpoint
exposed, ornull
if thisMvcEndpoint
exposes information that cannot be represented as a traditionalEndpoint
.protected org.springframework.core.env.Environment
getEnvironment()
String
getPath()
Return the MVC path of the endpoint.boolean
isEnabled()
boolean
isSensitive()
Return if the endpoint exposes sensitive information.void
setEnabled(Boolean enabled)
void
setEnvironment(org.springframework.core.env.Environment environment)
void
setPath(String path)
void
setSensitive(Boolean sensitive)
从类继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
构造器详细资料
AbstractMvcEndpoint
public AbstractMvcEndpoint(String path, boolean sensitive)
AbstractMvcEndpoint
public AbstractMvcEndpoint(String path, boolean sensitive, boolean enabled)
方法详细资料
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- 指定者:
setEnvironment
在接口中org.springframework.context.EnvironmentAware
getEnvironment
protected final org.springframework.core.env.Environment getEnvironment()
getPath
public String getPath()
从接口复制的说明:MvcEndpoint
Return the MVC path of the endpoint.- 指定者:
getPath
在接口中MvcEndpoint
- 返回:
- the endpoint path
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(Boolean enabled)
isSensitive
public boolean isSensitive()
从接口复制的说明:MvcEndpoint
Return if the endpoint exposes sensitive information.- 指定者:
isSensitive
在接口中MvcEndpoint
- 返回:
- if the endpoint is sensitive
setSensitive
public void setSensitive(Boolean 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