|
|||||||||||
| 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
Abstract base class for HandlerMapping implementations. Supports ordering, a default handler, and handler interceptors.
getHandlerInternal(javax.servlet.http.HttpServletRequest),
HandlerInterceptor| Field Summary | |
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
AbstractHandlerMapping()
|
|
| Method Summary | |
protected java.lang.Object |
getDefaultHandler()
Return the default handler for this handler mapping. |
HandlerExecutionChain |
getHandler(javax.servlet.http.HttpServletRequest request)
Look up a handler for the given request, falling back to the default handler if no specific one is found. |
protected abstract java.lang.Object |
getHandlerInternal(javax.servlet.http.HttpServletRequest request)
Lookup a handler for the given request, returning null if no specific one is found. |
int |
getOrder()
Return the order value of this object, higher value meaning greater in terms of sorting. |
void |
setDefaultHandler(java.lang.Object defaultHandler)
Set the default handler for this handler mapping. |
void |
setInterceptors(HandlerInterceptor[] interceptors)
Set the handler interceptors to apply for all handlers mapped by this handler mapping. |
void |
setOrder(int order)
|
| Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext |
| Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
public AbstractHandlerMapping()
| Method Detail |
public final void setOrder(int order)
public final int getOrder()
OrderedHigher value can be interpreted as lower priority, consequently the first object has highest priority (somewhat analogous to Servlet "load-on-startup" values).
getOrder in interface Orderedpublic final void setDefaultHandler(java.lang.Object defaultHandler)
defaultHandler - default handler instance, or null if noneprotected final java.lang.Object getDefaultHandler()
public final void setInterceptors(HandlerInterceptor[] interceptors)
interceptors - array of handler interceptors, or null if none
public final HandlerExecutionChain getHandler(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
getHandler in interface HandlerMappingrequest - current HTTP request
java.lang.Exception - if there is an internal errorgetHandlerInternal(javax.servlet.http.HttpServletRequest)
protected abstract java.lang.Object getHandlerInternal(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
request - current HTTP request
java.lang.Exception - if there is an internal error
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||