@ConfigurationProperties(prefix="endpoints.mappings") public class RequestMappingEndpoint extends AbstractEndpoint<Map<String,Object>> implements ApplicationContextAware
Endpoint
to expose Spring MVC mappings.Constructor and Description |
---|
RequestMappingEndpoint() |
Modifier and Type | Method and Description |
---|---|
protected void |
extractHandlerMappings(ApplicationContext applicationContext,
Map<String,Object> result) |
protected void |
extractHandlerMappings(Collection<AbstractUrlHandlerMapping> handlerMappings,
Map<String,Object> result) |
protected void |
extractMethodMappings(ApplicationContext applicationContext,
Map<String,Object> result) |
protected void |
extractMethodMappings(Collection<AbstractHandlerMethodMapping<?>> methodMappings,
Map<String,Object> result) |
Map<String,Object> |
invoke()
Called to invoke the endpoint.
|
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setHandlerMappings(List<AbstractUrlHandlerMapping> handlerMappings)
Set the handler mappings.
|
void |
setMethodMappings(List<AbstractHandlerMethodMapping<?>> methodMappings)
Set the method mappings.
|
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public void setHandlerMappings(List<AbstractUrlHandlerMapping> handlerMappings)
handlerMappings
- the handler mappingspublic void setMethodMappings(List<AbstractHandlerMethodMapping<?>> methodMappings)
methodMappings
- the method mappingspublic Map<String,Object> invoke()
Endpoint
protected void extractMethodMappings(ApplicationContext applicationContext, Map<String,Object> result)
protected void extractHandlerMappings(ApplicationContext applicationContext, Map<String,Object> result)
protected void extractHandlerMappings(Collection<AbstractUrlHandlerMapping> handlerMappings, Map<String,Object> result)
protected void extractMethodMappings(Collection<AbstractHandlerMethodMapping<?>> methodMappings, Map<String,Object> result)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.