@Endpoint(id="mappings") public class RequestMappingEndpoint extends Object implements org.springframework.context.ApplicationContextAware
Endpoint
to expose Spring MVC mappings.Constructor and Description |
---|
RequestMappingEndpoint() |
Modifier and Type | Method and Description |
---|---|
protected void |
extractHandlerMappings(org.springframework.context.ApplicationContext applicationContext,
Map<String,Object> result) |
protected void |
extractHandlerMappings(Collection<org.springframework.web.servlet.handler.AbstractUrlHandlerMapping> handlerMappings,
Map<String,Object> result) |
protected void |
extractMethodMappings(org.springframework.context.ApplicationContext applicationContext,
Map<String,Object> result) |
protected void |
extractMethodMappings(Collection<org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<?>> methodMappings,
Map<String,Object> result) |
Map<String,Object> |
mappings() |
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.
|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setHandlerMappings(List<org.springframework.web.servlet.handler.AbstractUrlHandlerMapping> handlerMappings)
handlerMappings
- the handler mappingspublic void setMethodMappings(List<org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<?>> methodMappings)
methodMappings
- the method mappings@ReadOperation public Map<String,Object> mappings()
protected void extractMethodMappings(org.springframework.context.ApplicationContext applicationContext, Map<String,Object> result)
protected void extractHandlerMappings(org.springframework.context.ApplicationContext applicationContext, Map<String,Object> result)
protected void extractHandlerMappings(Collection<org.springframework.web.servlet.handler.AbstractUrlHandlerMapping> handlerMappings, Map<String,Object> result)
protected void extractMethodMappings(Collection<org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<?>> methodMappings, Map<String,Object> result)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.