类 ConfRestfuls

java.lang.Object
com.gdxsoft.easyweb.conf.ConfRestfuls

public class ConfRestfuls extends Object
  • 构造器详细资料

    • ConfRestfuls

      public ConfRestfuls()
  • 方法详细资料

    • getInstance

      public static ConfRestfuls getInstance()
    • getConfRestful

      public ConfRestful getConfRestful(String path, String httpMethod, RequestValue rv, RestfulResult<Object> result)
      根据 path 和 method 获取restful配置
      参数:
      path - 请求地址
      httpMethod - HTTP method(get/put/post/delete/patch)
      rv - RequestValue
      result - 记录结果的对象
      返回:
      抛出:
      Exception
    • getConfRestfulFromJdbc

      public ConfRestful getConfRestfulFromJdbc(String path, String httpMethod, RequestValue rv, RestfulResult<Object> result) throws Exception
      根据 path 和 method 获取restful配置
      参数:
      path - 目录
      httpMethod - HTTP method(get/put/post/delete/patch)
      rv - RequestValue
      result - 记录结果的对象
      返回:
      抛出:
      Exception
    • getConfRestfulFromEwaConf

      public ConfRestful getConfRestfulFromEwaConf(String path, String httpMethod, RequestValue rv, RestfulResult<Object> result)
      根据 path 和 method 获取restful配置
      参数:
      path - 目录
      httpMethod - HTTP method(get/put/post/delete/patch)
      rv - RequestValue
      result - 记录结果的对象
      返回:
    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
    • getXml

      public String getXml()
    • setXml

      public void setXml(String xml)
    • isJdbc

      public boolean isJdbc()
    • setJdbc

      public void setJdbc(boolean jdbc)
    • getDataSource

      public String getDataSource()
    • setDataSource

      public void setDataSource(String dataSource)
    • getCors

      public String getCors()
      Access-Control-Allow-Origin
      返回:
    • setCors

      public void setCors(String cors)
      Access-Control-Allow-Origin
      参数:
      cors -