本文整理汇总了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[] {};
}
}
示例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()};
}
示例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[] {};
}
}
示例4: filters
import play.mvc.EssentialFilter; //导入依赖的package包/类
@Override
public EssentialFilter[] filters() {
return new EssentialFilter[]{};
}
示例5: filters
import play.mvc.EssentialFilter; //导入依赖的package包/类
@Override
public EssentialFilter[] filters() {
return filters;
}
示例6: filters
import play.mvc.EssentialFilter; //导入依赖的package包/类
public EssentialFilter[] filters() {
return new EssentialFilter[] { corsFilter.asJava() };
}
示例7: filters
import play.mvc.EssentialFilter; //导入依赖的package包/类
@Override
public EssentialFilter[] filters() {
return new EssentialFilter[] {exampleFilter};
}