Class PrimefacesFileUploadServletContextAutoConfiguration
java.lang.Object
org.joinfaces.autoconfigure.primefaces.PrimefacesFileUploadServletContextAutoConfiguration
@Deprecated(forRemoval=true,
since="Primefaces 14")
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(org.primefaces.webapp.filter.FileUploadFilter.class)
@ConditionalOnWebApplication(type=SERVLET)
@AutoConfigureAfter(JakartaFaces3AutoConfiguration.class)
@EnableConfigurationProperties(PrimefacesFileUploadFilterProperties.class)
public class PrimefacesFileUploadServletContextAutoConfiguration
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
FileUploadFilter
bean is needed for requests to be wrapped as a
MultipartRequest
.-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionFilterRegistrationBean<org.primefaces.webapp.filter.FileUploadFilter>
primefacesFileUploadFilterRegistrationBean
(PrimefacesFileUploadFilterProperties uploadFilterProperties, ObjectProvider<ServletRegistrationBean<FacesServlet>> facesServletRegistrationBean) Deprecated, for removal: This API element is subject to removal in a future version.File upload filter is required only if commons fileupload is chosen.
-
Constructor Details
-
PrimefacesFileUploadServletContextAutoConfiguration
public PrimefacesFileUploadServletContextAutoConfiguration()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
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) Deprecated, for removal: This API element is subject to removal in a future version.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
-