Klasse PrimefacesFileUploadServletContextAutoConfiguration
java.lang.Object
org.joinfaces.autoconfigure.primefaces.PrimefacesFileUploadServletContextAutoConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(org.primefaces.webapp.filter.FileUploadFilter.class)
@ConditionalOnWebApplication(type=SERVLET)
@AutoConfigureAfter(JakartaFaces3AutoConfiguration.class)
@EnableConfigurationProperties(PrimefacesFileUploadFilterProperties.class)
public class PrimefacesFileUploadServletContextAutoConfiguration
extends Object
FileUploadFilter
bean is needed for requests to be wrapped as a
MultipartRequest
.-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungFilterRegistrationBean
<org.primefaces.webapp.filter.FileUploadFilter> primefacesFileUploadFilterRegistrationBean
(PrimefacesFileUploadFilterProperties uploadFilterProperties, ObjectProvider<ServletRegistrationBean<FacesServlet>> facesServletRegistrationBean) File upload filter is required only if commons fileupload is chosen.
-
Konstruktordetails
-
PrimefacesFileUploadServletContextAutoConfiguration
public PrimefacesFileUploadServletContextAutoConfiguration()
-
-
Methodendetails
-
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.- Parameter:
uploadFilterProperties
-ConfigurationProperties
object for theFileUploadFilter
.facesServletRegistrationBean
-RegistrationBean
for theFacesServlet
, if available.- Gibt zurück:
- file upload filter
-