public abstract class AbstractMvcEndpoint extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter implements MvcEndpoint, org.springframework.context.EnvironmentAware
MvcEndpoint
implementations without a backing
Endpoint
.DISABLED_RESPONSE
Constructor and Description |
---|
AbstractMvcEndpoint(String path,
boolean sensitive) |
AbstractMvcEndpoint(String path,
boolean sensitive,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
Class<? extends Endpoint> |
getEndpointType()
Return the type of
Endpoint exposed, or null if this
MvcEndpoint exposes information that cannot be represented as a traditional
Endpoint . |
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) |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
public AbstractMvcEndpoint(String path, boolean sensitive)
public AbstractMvcEndpoint(String path, boolean sensitive, boolean enabled)
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment
in interface org.springframework.context.EnvironmentAware
protected final org.springframework.core.env.Environment getEnvironment()
public String getPath()
MvcEndpoint
getPath
in interface MvcEndpoint
public void setPath(String path)
public boolean isEnabled()
public void setEnabled(Boolean enabled)
public boolean isSensitive()
MvcEndpoint
isSensitive
in interface MvcEndpoint
public void setSensitive(Boolean sensitive)
public Class<? extends Endpoint> getEndpointType()
MvcEndpoint
Endpoint
exposed, or null
if this
MvcEndpoint
exposes information that cannot be represented as a traditional
Endpoint
.getEndpointType
in interface MvcEndpoint
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.