public class EndpointHandlerMapping
extends AbstractUrlHandlerMapping
implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
HandlerMapping
to map Endpoint
s to URLs via Endpoint.getPath()
.
Standard Endpoint
s are mapped to GET requests, ActionEndpoint
s 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 Endpoint
s 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.InitializingBean
Exception
protected Object lookupHandler(String urlPath, HttpServletRequest request) throws Exception
Exception
public void setPrefix(String prefix)
prefix
- the prefix to setpublic void setDisabled(boolean disabled)
public boolean isDisabled()
Copyright © 2013. All rights reserved.