Class RequestMappingEndpoint
- java.lang.Object
- org.springframework.boot.actuate.endpoint.AbstractEndpoint<Map<String,Object>>
- org.springframework.boot.actuate.endpoint.RequestMappingEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,Endpoint<Map<String,Object>>
,org.springframework.context.ApplicationContextAware
,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="endpoints.mappings") public class RequestMappingEndpoint extends AbstractEndpoint<Map<String,Object>> implements org.springframework.context.ApplicationContextAware
Endpoint
to expose Spring MVC mappings.
Constructor Summary
Constructors Constructor Description RequestMappingEndpoint()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
extractHandlerMappings(Collection<org.springframework.web.servlet.handler.AbstractUrlHandlerMapping> handlerMappings, Map<String,Object> result)
protected void
extractHandlerMappings(org.springframework.context.ApplicationContext applicationContext, Map<String,Object> result)
protected void
extractMethodMappings(Collection<org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<?>> methodMappings, Map<String,Object> result)
protected void
extractMethodMappings(org.springframework.context.ApplicationContext applicationContext, Map<String,Object> result)
Map<String,Object>
invoke()
Called to invoke the endpoint.void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setHandlerMappings(List<org.springframework.web.servlet.handler.AbstractUrlHandlerMapping> handlerMappings)
Set the handler mappings.void
setMethodMappings(List<org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<?>> methodMappings)
Set the method mappings.Methods inherited from class org.springframework.boot.actuate.endpoint.AbstractEndpoint
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
Constructor Detail
RequestMappingEndpoint
public RequestMappingEndpoint()
Method Detail
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
setHandlerMappings
public void setHandlerMappings(List<org.springframework.web.servlet.handler.AbstractUrlHandlerMapping> handlerMappings)
Set the handler mappings.- Parameters:
handlerMappings
- the handler mappings
setMethodMappings
public void setMethodMappings(List<org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<?>> methodMappings)
Set the method mappings.- Parameters:
methodMappings
- the method mappings
invoke
public Map<String,Object> invoke()
Description copied from interface:Endpoint
Called to invoke the endpoint.
extractMethodMappings
protected void extractMethodMappings(org.springframework.context.ApplicationContext applicationContext, Map<String,Object> result)
extractHandlerMappings
protected void extractHandlerMappings(org.springframework.context.ApplicationContext applicationContext, Map<String,Object> result)
extractHandlerMappings
protected void extractHandlerMappings(Collection<org.springframework.web.servlet.handler.AbstractUrlHandlerMapping> handlerMappings, Map<String,Object> result)
extractMethodMappings
protected void extractMethodMappings(Collection<org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<?>> methodMappings, Map<String,Object> result)