|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.handler.AbstractHandlerMapping
org.springframework.web.servlet.handler.AbstractUrlHandlerMapping
it.openutils.web.spring.ParamNameUrlHandlerMapping
public class ParamNameUrlHandlerMapping
Implementation of the HandlerMapping interface to map from URLs to request handler beans.
| Field Summary |
|---|
| Fields inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping |
|---|
logger |
| Constructor Summary | |
|---|---|
ParamNameUrlHandlerMapping()
|
|
| Method Summary | |
|---|---|
protected java.lang.Object |
getHandlerInternal(javax.servlet.http.HttpServletRequest request)
Look up a handler for the URL path of the given request. |
void |
initApplicationContext()
init the application context |
void |
setMappings(java.util.Properties mappings)
Map URL paths to handler bean names. |
void |
setParamName(java.lang.String paramName)
set the parameter name |
void |
setUrlMap(java.util.Map urlMap)
Set a Map with URL paths as keys and handler beans as values. |
| Methods inherited from class org.springframework.web.servlet.handler.AbstractUrlHandlerMapping |
|---|
lookupHandler, registerHandler, setAlwaysUseFullPath, setLazyInitHandlers, setPathMatcher, setUrlDecode, setUrlPathHelper |
| Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping |
|---|
getDefaultHandler, getHandler, getOrder, setDefaultHandler, setInterceptors, setOrder |
| Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
|---|
getServletContext, getTempDir, getWebApplicationContext, isContextRequired |
| Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
|---|
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParamNameUrlHandlerMapping()
| Method Detail |
|---|
public void setUrlMap(java.util.Map urlMap)
Supports direct URL matches and Ant-style pattern matches. For syntax details, see the PathMatcher class.
urlMap - map with URLs as keys and beans as valuesPathMatcherpublic void setParamName(java.lang.String paramName)
paramName - public void setMappings(java.util.Properties mappings)
Supports direct URL matches and Ant-style pattern matches. For syntax details, see the PathMatcher class.
mappings - properties with URLs as keys and bean names as valuesPathMatcher
public void initApplicationContext()
throws org.springframework.beans.BeansException
initApplicationContext in class org.springframework.context.support.ApplicationObjectSupportorg.springframework.beans.BeansExceptionApplicationObjectSupport.initApplicationContext()
protected java.lang.Object getHandlerInternal(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
getHandlerInternal in class org.springframework.web.servlet.handler.AbstractUrlHandlerMappingrequest - current HTTP request
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||