作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中httl.web.WebEngine.getTemplateSuffix()
方法的一些代码示例,展示了WebEngine.getTemplateSuffix()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebEngine.getTemplateSuffix()
方法的具体详情如下:
包路径:httl.web.WebEngine
类名称: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());
}
}
本文整理了Java中httl.web.WebEngine.getTemplateSuffix()方法的一些代码示例,展示了WebEngine.getTemplateSuffix()的具体用法。这些代码
我是一名优秀的程序员,十分优秀!