|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.admin.web.util.HomeController
@Controller public class HomeController
Component that discovers request mappings in its application context and
reveals their meta data. Any RequestMapping annotations in controller
components at method or type level are discovered.
| Constructor Summary | |
|---|---|
HomeController()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Create the meta data by querying the context for mappings. |
java.lang.String |
getResources(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model)
Inspect the handler mapping at the level of HTTP RequestMethod. |
java.util.Set<java.lang.String> |
getUrlPatterns()
The set of unique URI patterns mapped, excluding implicit mappings. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setDefaultResources(java.util.Properties defaultResources)
Pre-configured mapping from url path to description for default (HTML) resources. |
void |
setJsonResources(java.util.Properties jsonResources)
Pre-configured mapping from url path to description for JSON resources. |
void |
setServletPath(java.lang.String servletPath)
The path that will be added to the model as an attribute ("servletPath") before rendering. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HomeController()
| Method Detail |
|---|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionApplicationContextAware.setApplicationContext(ApplicationContext)public void setServletPath(java.lang.String servletPath)
servletPath - the servlet path to setpublic void setDefaultResources(java.util.Properties defaultResources)
defaultResources - the default resources to setpublic void setJsonResources(java.util.Properties jsonResources)
default resources.
jsonResources - the json resources to set
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.ExceptionInitializingBean.afterPropertiesSet()
@RequestMapping(value={"/","/home"},
method=GET)
public java.lang.String getResources(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model)
RequestMethod.
Each URI pattern that is mapped can be mapped to multiple request
methods. If the mapping is not explicit this method only returns GET
(even though technically it would respond to POST as well).
request - the current servlet request (used to extract a page
attribute "sevletPath")
public java.util.Set<java.lang.String> getUrlPatterns()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||