类 AnylineController

java.lang.Object
org.anyline.web.controller.AbstractBasicController
org.anyline.controller.impl.AnylineController
直接已知子类:
TemplateController

public abstract class AnylineController extends AbstractBasicController
  • 字段详细资料

    • _request

      protected jakarta.servlet.http.HttpServletRequest _request
    • _response

      protected jakarta.servlet.http.HttpServletResponse _response
  • 构造器详细资料

    • AnylineController

      public AnylineController()
  • 方法详细资料

    • getRequest

      protected jakarta.servlet.http.HttpServletRequest getRequest()
      当前线程下的request
      返回:
      HttpServletRequest
    • setRequest

      @Autowired protected void setRequest(jakarta.servlet.http.HttpServletRequest request)
    • getResponse

      protected jakarta.servlet.http.HttpServletResponse getResponse()
    • setResponse

      @Autowired public void setResponse(jakarta.servlet.http.HttpServletResponse response)
    • getSession

      protected jakarta.servlet.http.HttpSession getSession()
    • getServlet

      protected jakarta.servlet.ServletContext getServlet()
    • entity

      public <T> T entity(Class<T> clazz, boolean keyEncrypt, boolean valueEncrypt, String... params)
    • entity

      public <T> T entity(Class<T> clazz, boolean keyEncrypt, boolean valueEncrypt, String[] fixs, String... params)
    • entity

      public <T> T entity(Class<T> clazz, boolean keyEncrypt, boolean valueEncrypt, List<String> fixs, String... params)
    • entity

      public <T> T entity(Class<T> clazz, boolean keyEncrypt, String... params)
    • entity

      public <T> T entity(Class<T> clazz, boolean keyEncrypt, String[] fixs, String... params)
    • entity

      public <T> T entity(Class<T> clazz, boolean keyEncrypt, List<String> fixs, String... params)
    • entity

      public <T> T entity(Class<T> clazz, String... params)
    • entity

      public <T> T entity(Class<T> clazz, String[] fixs, String... params)
    • entity

      public <T> T entity(Class<T> clazz, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(boolean keyEncrypt, boolean valueEncrypt, String... params)
    • entity

      public org.anyline.entity.DataRow entity(boolean keyEncrypt, boolean valueEncrypt, String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(boolean keyEncrypt, boolean valueEncrypt, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.data.param.TableBuilder table)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.data.param.TableBuilder table, org.anyline.entity.DataRow row)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, org.anyline.entity.DataRow row, boolean keyEncrypt, boolean valueEncrypt, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, org.anyline.entity.DataRow row, boolean keyEncrypt, boolean valueEncrypt, String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, org.anyline.entity.DataRow row, boolean keyEncrypt, boolean valueEncrypt, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.entity.DataRow row, boolean keyEncrypt, boolean valueEncrypt, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.entity.DataRow row, boolean keyEncrypt, boolean valueEncrypt, String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.entity.DataRow row, boolean keyEncrypt, boolean valueEncrypt, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, org.anyline.entity.DataRow row, boolean keyEncrypt, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, org.anyline.entity.DataRow row, boolean keyEncrypt, String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, org.anyline.entity.DataRow row, boolean keyEncrypt, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.entity.DataRow row, boolean keyEncrypt, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.entity.DataRow row, boolean keyEncrypt, String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.entity.DataRow row, boolean keyEncrypt, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, org.anyline.entity.DataRow row, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, org.anyline.entity.DataRow row, String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, org.anyline.entity.DataRow row, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.entity.DataRow row, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.entity.DataRow row, String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.entity.DataRow row, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, boolean valueEncrypt, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, boolean valueEncrypt, String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, boolean valueEncrypt, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(boolean keyEncrypt, String... params)
    • entity

      public org.anyline.entity.DataRow entity(boolean keyEncrypt, String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(boolean keyEncrypt, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, List<String> fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(String... params)
    • entity

      public org.anyline.entity.DataRow entity(String[] fixs, String... params)
    • entity

      public org.anyline.entity.DataRow entity(List<String> fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, boolean valueEncrypt, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, boolean valueEncrypt, String[] fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, boolean valueEncrypt, List<String> fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(boolean keyEncrypt, boolean valueEncrypt, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(boolean keyEncrypt, boolean valueEncrypt, String[] fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(boolean keyEncrypt, boolean valueEncrypt, List<String> fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, String[] fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, boolean keyEncrypt, List<String> fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(boolean keyEncrypt, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(boolean keyEncrypt, String[] fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(boolean keyEncrypt, List<String> fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, String[] fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(org.anyline.adapter.KeyAdapter.KEY_CASE keyCase, List<String> fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(String[] fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(List<String> fixs, String... params)
    • entitys

      public org.anyline.entity.DataSet entitys(org.anyline.data.param.TableBuilder table)
    • entitys

      public org.anyline.entity.DataSet entitys(org.anyline.data.prepare.RunPrepare prepare)
    • condition

      protected org.anyline.data.param.ConfigStore condition(boolean navi, String... configs)
      构造查询条件
      参数:
      navi - 是否分页
      configs - 查询条件参考doc.anyline.org查询参数约定格式 http://doc.anyline.org/s?id=1059
      返回:
      ConfigStore
    • condition

      protected org.anyline.data.param.ConfigStore condition(boolean navi, String[] fixs, String... configs)
    • condition

      protected org.anyline.data.param.ConfigStore condition(boolean navi, List<String> fixs, String... configs)
    • condition

      protected org.anyline.data.param.ConfigStore condition(int vol, String... configs)
    • condition

      protected org.anyline.data.param.ConfigStore condition(int vol, String[] fixs, String... configs)
    • condition

      protected org.anyline.data.param.ConfigStore condition(int vol, List<String> fixs, String... configs)
    • condition

      protected org.anyline.data.param.ConfigStore condition(long fr, long to, String... configs)
      构造查询条件
      参数:
      fr - 开始行数
      to - 结束行数
      configs - 查询条件参考doc.anyline.org查询参数约定格式 http://doc.anyline.org/s?id=1059
      返回:
      ConfigStore
    • condition

      protected org.anyline.data.param.ConfigStore condition(long fr, long to, String[] fixs, String... configs)
    • condition

      protected org.anyline.data.param.ConfigStore condition(long fr, long to, List<String> fixs, String... configs)
    • condition

      protected org.anyline.data.param.ConfigStore condition(String... conditions)
    • condition

      protected org.anyline.data.param.ConfigStore condition(String[] fixs, String... conditions)
    • condition

      protected org.anyline.data.param.ConfigStore condition(List<String> fixs, String... conditions)
    • where

      protected org.anyline.data.param.ConfigStore where(boolean navi, String... configs)
    • where

      protected org.anyline.data.param.ConfigStore where(boolean navi, String[] fixs, String... configs)
    • where

      protected org.anyline.data.param.ConfigStore where(boolean navi, List<String> fixs, String... configs)
    • where

      protected org.anyline.data.param.ConfigStore where(int vol, String... configs)
    • where

      protected org.anyline.data.param.ConfigStore where(int vol, String[] fixs, String... configs)
    • where

      protected org.anyline.data.param.ConfigStore where(int vol, List<String> fixs, String... configs)
    • where

      protected org.anyline.data.param.ConfigStore where(long fr, long to, String... configs)
    • where

      protected org.anyline.data.param.ConfigStore where(long fr, long to, String[] fixs, String... configs)
    • where

      protected org.anyline.data.param.ConfigStore where(long fr, long to, List<String> fixs, String... configs)
    • where

      protected org.anyline.data.param.ConfigStore where(String... conditions)
    • where

      protected org.anyline.data.param.ConfigStore where(String[] fixs, String... conditions)
    • where

      protected org.anyline.data.param.ConfigStore where(List<String> fixs, String... conditions)
    • getParam

      protected String getParam(String key, boolean keyEncrypt, boolean valueEncrypt, String... defs)
    • getParam

      protected String getParam(String key, boolean valueEncrypt, String... defs)
    • getParam

      protected String getParam(String key, String... defs)
    • getParams

      protected List<Object> getParams(String key, boolean keyEncrypt, boolean valueEncrypt)
    • getParams

      protected List<Object> getParams(String key, boolean valueEncrypt)
    • getParams

      protected List<Object> getParams(String key)
    • getString

      protected String getString(String key, boolean keyEncrypt, boolean valueEncrypt, String... defs)
    • getString

      protected String getString(String key, boolean valueEncrypt, String... defs)
    • getString

      protected String getString(String key, String... defs)
    • getStrings

      protected List<String> getStrings(String key, boolean keyEncrypt, boolean valueEncrypt)
    • getStrings

      protected List<String> getStrings(String key, boolean valueEncrypt)
    • getStrings

      protected List<String> getStrings(String key)
    • getInt

      protected int getInt(String key, boolean keyEncrypt, boolean valueEncrypt) throws Exception
      抛出:
      Exception
    • getInt

      protected int getInt(String key, boolean valueEncrypt) throws Exception
      抛出:
      Exception
    • getInt

      protected int getInt(String key) throws Exception
      抛出:
      Exception
    • getInt

      protected int getInt(String key, boolean keyEncrypt, boolean valueEncrypt, int def)
    • getInt

      protected int getInt(String key, boolean valueEncrypt, int def)
    • getInt

      protected int getInt(String key, int def)
    • getDouble

      protected double getDouble(String key, boolean keyEncrypt, boolean valueEncrypt) throws Exception
      抛出:
      Exception
    • getDouble

      protected double getDouble(String key, boolean valueEncrypt) throws Exception
      抛出:
      Exception
    • getDouble

      protected double getDouble(String key) throws Exception
      抛出:
      Exception
    • getDouble

      protected double getDouble(String key, boolean keyEncrypt, boolean valueEncrypt, double def)
    • getDouble

      protected double getDouble(String key, boolean valueEncrypt, double def)
    • getDouble

      protected double getDouble(String key, double def)
    • checkRequired

      protected boolean checkRequired(boolean keyEncrypt, boolean valueEncrypt, String... params)
    • checkRequired

      protected boolean checkRequired(String... params)
    • isAjaxRequest

      protected boolean isAjaxRequest()
    • setRequestMessage

      protected void setRequestMessage(String key, Object value, String type)
    • setRequestMessage

      protected void setRequestMessage(String key, Object value)
    • setRequestMessage

      protected void setRequestMessage(Object value)
    • setMessage

      protected void setMessage(String key, Object value, String type)
    • setMessage

      protected void setMessage(String key, Object value)
    • setMessage

      protected void setMessage(Object value)
    • setSessionMessage

      protected void setSessionMessage(String key, Object value, String type)
    • setSessionMessage

      protected void setSessionMessage(String key, Object value)
    • setSessionMessage

      protected void setSessionMessage(Object value)
    • hasReffer

      protected boolean hasReffer()
    • isSpider

      protected boolean isSpider()
    • isWap

      protected boolean isWap()
    • result

      public String result(Object code, boolean result, Object data, String message)
      返回执行路径
      参数:
      code - code
      result - 执行结果
      data - 返回数据
      message - message
      返回:
      String
    • fail

      protected String fail(String msg, boolean encrypt)
      参数:
      msg - msg
      encrypt - 是否加密 encrypt 是否加密
      返回:
      String
    • fail

      protected String fail(String code, String msg, boolean encrypt)
    • fail

      protected String fail(String msg)
    • fail

      protected String fail(String code, String msg)
    • fail

      protected String fail()
    • success

      protected String success(Object data, boolean encrypt)
      加密仅支持String类型 不支持对象加密
      参数:
      data - data
      encrypt - encrypt
      返回:
      String
    • success

      protected String success(Object data)
    • success

      protected String success(Object... data)
    • buildDir

      protected String buildDir()
      根据dir构造文件目录(super.dir+this.dir)
      返回:
      String
    • parseVariable

      protected String parseVariable(String src)
    • paths

      public static String paths(String... paths)