public class EndpointHandlerMapping
extends AbstractUrlHandlerMapping
implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
HandlerMapping to map Endpoints to URLs via Endpoint.getPath().
Standard Endpoints are mapped to GET requests, ActionEndpoints are
mapped to POST requests.EndpointHandlerAdapter| Constructor and Description |
|---|
EndpointHandlerMapping()
Create a new
EndpointHandlerMapping instance. |
EndpointHandlerMapping(Collection<? extends Endpoint<?>> endpoints)
Create a new
EndpointHandlerMapping with the specified endpoints. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
List<Endpoint<?>> |
getEndpoints()
Return the endpoints
|
boolean |
isDisabled()
Returns if this mapping is disabled.
|
protected Object |
lookupHandler(String urlPath,
HttpServletRequest request) |
void |
setDisabled(boolean disabled)
Sets if this mapping is disabled.
|
void |
setPrefix(String prefix) |
public EndpointHandlerMapping()
EndpointHandlerMapping instance. All Endpoints will be
detected from the ApplicationContext.public EndpointHandlerMapping(Collection<? extends Endpoint<?>> endpoints)
EndpointHandlerMapping with the specified endpoints.endpoints - the endpointspublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected Object lookupHandler(String urlPath, HttpServletRequest request) throws Exception
Exceptionpublic void setPrefix(String prefix)
prefix - the prefix to setpublic void setDisabled(boolean disabled)
public boolean isDisabled()
Copyright © 2013. All rights reserved.