本文整理汇总了Java中org.primefaces.webapp.filter.FileUploadFilter类的典型用法代码示例。如果您正苦于以下问题:Java FileUploadFilter类的具体用法?Java FileUploadFilter怎么用?Java FileUploadFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FileUploadFilter类属于org.primefaces.webapp.filter包,在下文中一共展示了FileUploadFilter类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fileUploadFilterRegistrationBean
import org.primefaces.webapp.filter.FileUploadFilter; //导入依赖的package包/类
@Bean
public FilterRegistrationBean fileUploadFilterRegistrationBean() {
FilterRegistrationBean registrationBean = new FilterRegistrationBean();
registrationBean.addUrlPatterns("*.jsf");
registrationBean.setFilter(new FileUploadFilter());
return registrationBean;
}
示例2: fileUploadFilter
import org.primefaces.webapp.filter.FileUploadFilter; //导入依赖的package包/类
/**
* File upload filter is required only if commons fileupload is chosen.
* @return file upload filter
*/
@ConditionalOnExpression("'${jsf.primefaces.uploader}' == 'commons'")
@Bean
public Filter fileUploadFilter() {
return new FileUploadFilter();
}
开发者ID:joinfaces,项目名称:joinfaces,代码行数:10,代码来源:PrimefacesFileUploadServletContextAutoConfiguration.java
示例3: testFileUploadFilter
import org.primefaces.webapp.filter.FileUploadFilter; //导入依赖的package包/类
public void testFileUploadFilter() throws ServletException {
assertThat(this.primefacesFileUploadServletContextAutoConfiguration.fileUploadFilter())
.isInstanceOfAny(FileUploadFilter.class);
}
开发者ID:joinfaces,项目名称:joinfaces,代码行数:5,代码来源:CommonsPrimefacesFileUploadServletContextInitializerIT.java