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
Endpointto expose Spring MVC mappings.
Constructor Summary
Constructors Constructor Description RequestMappingEndpoint()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidextractHandlerMappings(Collection<org.springframework.web.servlet.handler.AbstractUrlHandlerMapping> handlerMappings, Map<String,Object> result)protected voidextractHandlerMappings(org.springframework.context.ApplicationContext applicationContext, Map<String,Object> result)protected voidextractMethodMappings(Collection<org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<?>> methodMappings, Map<String,Object> result)protected voidextractMethodMappings(org.springframework.context.ApplicationContext applicationContext, Map<String,Object> result)Map<String,Object>invoke()Called to invoke the endpoint.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetHandlerMappings(List<org.springframework.web.servlet.handler.AbstractUrlHandlerMapping> handlerMappings)Set the handler mappings.voidsetMethodMappings(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:
setApplicationContextin 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:EndpointCalled 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)