当前位置: 首页>>代码示例>>Java>>正文


Java EssentialFilter类代码示例

本文整理汇总了Java中play.mvc.EssentialFilter的典型用法代码示例。如果您正苦于以下问题:Java EssentialFilter类的具体用法?Java EssentialFilter怎么用?Java EssentialFilter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


EssentialFilter类属于play.mvc包,在下文中一共展示了EssentialFilter类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: filters

import play.mvc.EssentialFilter; //导入依赖的package包/类
@Override
public EssentialFilter[] filters() {
  // Use the example filter if we're running development mode. If
  // we're running in production or test mode then don't use any
  // filters at all.
  if (env.mode().equals(Mode.DEV)) {
      return new EssentialFilter[] { exampleFilter };
  } else {
     return new EssentialFilter[] {};      
  }
}
 
开发者ID:beingsagir,项目名称:play-java-spring-data-jpa,代码行数:12,代码来源:Filters.java

示例2: PitchFilters

import play.mvc.EssentialFilter; //导入依赖的package包/类
@Inject
public PitchFilters(SecurityHeadersFilter secHeadersFilter,
                    AllowedHostsFilter allowedHostsFilter,
                    GzipFilter gzipFilter) {

    filters = new EssentialFilter[]{secHeadersFilter.asJava(),
            allowedHostsFilter.asJava(),
            gzipFilter.asJava()};
}
 
开发者ID:gitpitch,项目名称:gitpitch,代码行数:10,代码来源:PitchFilters.java

示例3: filters

import play.mvc.EssentialFilter; //导入依赖的package包/类
@Override
public EssentialFilter[] filters() {
  // Use the example filter if we're running development mode. If
  // we're running in production or test mode then don't use any
  // filters at all.
  if (env.mode().equals(Mode.DEV)) {
      return new EssentialFilter[] { exampleFilter };
  } else {
     return new EssentialFilter[] {};
  }
}
 
开发者ID:play2-maven-plugin,项目名称:play2-maven-test-projects,代码行数:12,代码来源:Filters.java

示例4: filters

import play.mvc.EssentialFilter; //导入依赖的package包/类
@Override
public EssentialFilter[] filters() {
    return new EssentialFilter[]{};
}
 
开发者ID:btkelly,项目名称:gnag-website,代码行数:5,代码来源:Filters.java

示例5: filters

import play.mvc.EssentialFilter; //导入依赖的package包/类
@Override
public EssentialFilter[] filters() {
    return filters;
}
 
开发者ID:gitpitch,项目名称:gitpitch,代码行数:5,代码来源:PitchFilters.java

示例6: filters

import play.mvc.EssentialFilter; //导入依赖的package包/类
public EssentialFilter[] filters() {
	return new EssentialFilter[] { corsFilter.asJava() };
}
 
开发者ID:daflockinger,项目名称:spongeblog,代码行数:4,代码来源:Filters.java

示例7: filters

import play.mvc.EssentialFilter; //导入依赖的package包/类
@Override
public EssentialFilter[] filters() {
    return new EssentialFilter[] {exampleFilter};
}
 
开发者ID:glowroot,项目名称:glowroot,代码行数:5,代码来源:Filters.java


注:本文中的play.mvc.EssentialFilter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。