类 AbstractController

java.lang.Object
com.iplatform.base.AbstractController
所有已实现的接口:
org.springframework.beans.factory.InitializingBean
直接已知子类:
AbstractSecurityController

public abstract class AbstractController extends Object implements org.springframework.beans.factory.InitializingBean
  • 字段详细资料

    • logger

      protected final transient org.slf4j.Logger logger
    • DEFAULT_JS_NAME

      protected static final String DEFAULT_JS_NAME
      前端页面调用的JS方面名称
      另请参阅:
    • DEFAULT_PAGER_VIEW_NAME

      protected static final String DEFAULT_PAGER_VIEW_NAME
      前端使用的分页对象引用名称,默认值
      另请参阅:
  • 构造器详细资料

    • AbstractController

      public AbstractController()
  • 方法详细资料

    • getThirdPartyManager

      protected ThirdPartyManager getThirdPartyManager()
      返回第三方对接管理器对象。
      返回:
    • getServerDomain

      protected String getServerDomain()
      返回服务端调用地址前缀,如:
      http://localhost:8080/demo
      返回:
    • getPlatformCallback

      protected <T> T getPlatformCallback(Class<T> clazz)
      返回给定的回调实现对象。
      类型参数:
      T -
      参数:
      clazz - 定义的回调接口,如: PlatformUserCallback.class
      返回:
    • getArgumentVariable

      protected com.walker.infrastructure.arguments.Variable getArgumentVariable(String key)
      返回系统配置可变参数对象。
      参数:
      key - 参数 key
      返回:
    • getArgumentManager

      protected com.walker.infrastructure.arguments.ArgumentsManager getArgumentManager()
    • downloadSimpleFile

      protected void downloadSimpleFile(byte[] data, String fileName) throws IOException
      下载简单的文件,通常文件不大。
      参数:
      data - 文件字节码内容
      fileName - 文件名称,如: demo.zip
      抛出:
      IOException
    • preparePageSearch

      @Deprecated protected com.walker.db.page.PageSearch preparePageSearch()
      已过时。
      从前端获得分页查询条件,写入线程参数中。
    • getParamsDateTime

      protected long getParamsDateTime(String dateTime, boolean isTime)
      把一个日期或时间字符串,转换成数值。
           1.2022-11-16 --> 20221116000000
           2.2022-11-16 12:01:30 --> 20221116120130
       
      参数:
      dateTime - 给定时间或日期字符串
      isTime - 是否时间,否表示只有日期
      返回:
    • acquireTablePage

      @Deprecated protected <T> com.walker.web.ResponseValue<List<?>> acquireTablePage(List<T> data, long total)
      已过时。
      包装返回带分页的表格集合,加上total属性(适配前端)
      类型参数:
      T -
      参数:
      data -
      total -
      返回:
    • getRequest

      protected jakarta.servlet.http.HttpServletRequest getRequest()
    • getResponse

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

      protected String getContextPath()
      得到WEB应用上下文路径,如:/web
      返回:
    • getParameter

      protected String getParameter(String name)
    • getParameterUTF8

      protected String getParameterUTF8(String name) throws UnsupportedEncodingException
      抛出:
      UnsupportedEncodingException
    • getParameterValues

      protected String[] getParameterValues(String name)
    • getIntParameter

      protected Integer getIntParameter(String name)
    • getLongParameter

      protected Long getLongParameter(String name)
    • getFloatParameter

      protected Float getFloatParameter(String name)
    • getDoubleParameter

      protected Double getDoubleParameter(String name)
    • getAttribute

      protected Object getAttribute(String name)
      参数:
      name -
      返回:
      Attribute value
    • setAttribute

      protected void setAttribute(String name, Object value)
      参数:
      name -
      value -
    • setDefaultContentType

      protected void setDefaultContentType()
    • print

      protected void print(jakarta.servlet.http.HttpServletResponse response, String str) throws IOException
      抛出:
      IOException
    • ajaxOutPutText

      protected void ajaxOutPutText(Object outputString) throws IOException
      抛出:
      IOException
    • ajaxOutPutJson

      protected void ajaxOutPutJson(Object outputString) throws IOException
      抛出:
      IOException
    • ajaxOutPutXml

      protected void ajaxOutPutXml(Object outputString) throws IOException
      抛出:
      IOException
    • ajaxOutPutHtml

      protected void ajaxOutPutHtml(Object outputString) throws IOException
      抛出:
      IOException
    • ajaxOutputFileStream

      protected void ajaxOutputFileStream(String contentType, String filePath)
    • ajaxOutputFileStream

      protected void ajaxOutputFileStream(String contentType, File file)