Class PrimefacesFileUploadServletContextAutoConfiguration
- java.lang.Object
-
- org.joinfaces.autoconfigure.primefaces.PrimefacesFileUploadServletContextAutoConfiguration
-
@Configuration(proxyBeanMethods=false) @ConditionalOnClass(org.primefaces.webapp.filter.FileUploadFilter.class) @ConditionalOnWebApplication(type=SERVLET) @AutoConfigureAfter(JavaxFacesAutoConfiguration.class) @EnableConfigurationProperties(PrimefacesFileUploadFilterProperties.class) public class PrimefacesFileUploadServletContextAutoConfiguration extends Object
FileUploadFilter
bean is needed for requests to be wrapped as aMultipartRequest
.
-
-
Constructor Summary
Constructors Constructor Description PrimefacesFileUploadServletContextAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterRegistrationBean<org.primefaces.webapp.filter.FileUploadFilter>
primefacesFileUploadFilterRegistrationBean(PrimefacesFileUploadFilterProperties uploadFilterProperties, ObjectProvider<ServletRegistrationBean<FacesServlet>> facesServletRegistrationBean)
File upload filter is required only if commons fileupload is chosen.
-
-
-
Method Detail
-
primefacesFileUploadFilterRegistrationBean
@Bean @ConditionalOnProperty(value="joinfaces.primefaces.uploader", havingValue="commons") @ConditionalOnClass(name="org.apache.commons.fileupload.servlet.ServletFileUpload") public FilterRegistrationBean<org.primefaces.webapp.filter.FileUploadFilter> primefacesFileUploadFilterRegistrationBean(PrimefacesFileUploadFilterProperties uploadFilterProperties, ObjectProvider<ServletRegistrationBean<FacesServlet>> facesServletRegistrationBean)
File upload filter is required only if commons fileupload is chosen.- Parameters:
uploadFilterProperties
-ConfigurationProperties
object for theFileUploadFilter
.facesServletRegistrationBean
-RegistrationBean
for theFacesServlet
, if available.- Returns:
- file upload filter
-
-