@Controller
public class IndexController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private org.springframework.web.servlet.LocaleResolver |
localeResolver |
private TemplateCacheComponent |
templateCacheComponent |
构造器和说明 |
---|
IndexController() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
page(SysSite site,
java.lang.String body,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model)
页面请求统一分发
|
void |
refuse()
METADATA页面请求统一分发
|
java.lang.String |
rest(SysSite site,
long id,
java.lang.String body,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model)
REST页面请求统一分发
|
java.lang.String |
restPage(SysSite site,
long id,
java.lang.Integer pageIndex,
java.lang.String body,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model)
REST页面请求统一分发
|
private TemplateCacheComponent templateCacheComponent
private org.springframework.web.servlet.LocaleResolver localeResolver
@RequestMapping(value={"/**/data.data","/**/metadata.data","/include/*","/**/model.data","/**/categoryType.data","/**/config.data"}) @ResponseStatus(value=NOT_FOUND) public void refuse()
@RequestMapping(value="/**/{id:[0-9]+}") public java.lang.String rest(@RequestAttribute SysSite site, @PathVariable(value="id") long id, @RequestBody(required=false) java.lang.String body, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
site
- 站点id
- IDbody
- 消息体request
- 请求response
- 响应model
- 模型@RequestMapping(value="/**/{id:[0-9]+}_{pageIndex:[0-9]+}") public java.lang.String restPage(@RequestAttribute SysSite site, @PathVariable(value="id") long id, @PathVariable(value="pageIndex") java.lang.Integer pageIndex, @RequestBody(required=false) java.lang.String body, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
site
- 站点id
- IDpageIndex
- 分页body
- 消息体request
- 请求response
- 响应model
- 模型@RequestMapping(value={"/","/**"}) public java.lang.String page(@RequestAttribute SysSite site, @RequestBody(required=false) java.lang.String body, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
site
- 当前站点body
- 消息体request
- 请求response
- 响应model
- 模型