gpt4 book ai didi

httl.web.WebEngine.getTemplateSuffix()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 23:03:05 26 4
gpt4 key购买 nike

本文整理了Java中httl.web.WebEngine.getTemplateSuffix()方法的一些代码示例,展示了WebEngine.getTemplateSuffix()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebEngine.getTemplateSuffix()方法的具体详情如下:
包路径:httl.web.WebEngine
类名称:WebEngine
方法名:getTemplateSuffix

WebEngine.getTemplateSuffix介绍

暂无

代码示例

代码示例来源:origin: httl/httl

public void init(FilterConfig config) throws ServletException {
  suffix = WebEngine.getTemplateSuffix(config.getServletContext());
}

代码示例来源:origin: httl/httl

@Override
public void init() throws ServletException {
  suffix = WebEngine.getTemplateSuffix(getServletContext());
}

代码示例来源:origin: com.github.httl/httl

public static String getTemplateSuffix(ServletContext servletContext) {
  setServletContext(servletContext);
  return getTemplateSuffix();
}

代码示例来源:origin: httl/httl

public static String getTemplateSuffix(ServletContext servletContext) {
  setServletContext(servletContext);
  return getTemplateSuffix();
}

代码示例来源:origin: httl/httl

protected String getTemplatePath(String path, HttpServletRequest request) {
    String ext = WebEngine.getTemplateSuffix();
    if (Strings.isBlank(path)) { // 空路径,采用默认规则
      path = Files.renameSuffix(Mvcs.getRequestPath(request), ext);
      if (! path.startsWith("/")) {
        path = "/" + path;
      }
    } else if (path.charAt(0) == '/') { // 绝对路径 : 以 '/' 开头的路径不增加 '/WEB-INF'
      if (! path.toLowerCase().endsWith(ext)) {
        path += ext;
      }
    } else { // 包名形式的路径
      path = path.replace('.', '/') + ext;
    }
    return path;
  }
}

代码示例来源:origin: httl/httl

public String getViewExtension() {
  return WebEngine.getTemplateSuffix(JFinal.me().getServletContext());
}

代码示例来源:origin: httl/httl

public void afterPropertiesSet() throws Exception {
  WebEngine.setServletContext(getServletContext());
  if (getSuffix() == null || getSuffix().length() == 0) {
    super.setSuffix(WebEngine.getTemplateSuffix());
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com