类 IndexController

java.lang.Object
com.publiccms.controller.web.IndexController

@Controller public class IndexController extends Object
IndexController 统一分发Controller
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private org.springframework.web.servlet.LocaleResolver
     
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    page(SysSite site, String body, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
    页面请求统一分发
    void
    METADATA页面请求统一分发
    rest(SysSite site, long id, String body, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
    REST页面请求统一分发
    restPage(SysSite site, long id, Integer pageIndex, String body, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
    REST页面请求统一分发

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • templateCacheComponent

      private TemplateCacheComponent templateCacheComponent
    • localeResolver

      private org.springframework.web.servlet.LocaleResolver localeResolver
  • 构造器详细资料

    • IndexController

      public IndexController()
  • 方法详细资料

    • refuse

      @RequestMapping({"/**/data.data","/**/metadata.data","/include/*","/**/model.data","/**/categoryType.data","/**/config.data"}) @ResponseStatus(NOT_FOUND) public void refuse()
      METADATA页面请求统一分发
    • rest

      @RequestMapping("/**/{id:[0-9]+}") public String rest(@RequestAttribute SysSite site, @PathVariable("id") long id, @RequestBody(required=false) String body, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
      REST页面请求统一分发
      参数:
      site - 站点
      id - ID
      body - 消息体
      request - 请求
      response - 响应
      model - 模型
      返回:
      view name 视图名
    • restPage

      @RequestMapping("/**/{id:[0-9]+}_{pageIndex:[0-9]+}") public String restPage(@RequestAttribute SysSite site, @PathVariable("id") long id, @PathVariable("pageIndex") Integer pageIndex, @RequestBody(required=false) String body, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
      REST页面请求统一分发
      参数:
      site - 站点
      id - ID
      pageIndex - 分页
      body - 消息体
      request - 请求
      response - 响应
      model - 模型
      返回:
      view name 视图名
    • page

      @RequestMapping({"/","/**"}) public String page(@RequestAttribute SysSite site, @RequestBody(required=false) String body, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
      页面请求统一分发
      参数:
      site - 当前站点
      body - 消息体
      request - 请求
      response - 响应
      model - 模型
      返回:
      view name 视图名