Class IridaRestApiWebConfig
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.config.web.IridaRestApiWebConfig
-
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration @ComponentScan(basePackages="ca.corefacility.bioinformatics.irida.web.controller.api") public class IridaRestApiWebConfig extends java.lang.Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Configuration for IRIDA REST API.
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_IN_MEMORY_SIZE
static java.lang.Long
UNLIMITED_UPLOAD_SIZE
named constant for allowing unlimited upload sizes.
-
Constructor Summary
Constructors Constructor Description IridaRestApiWebConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.ViewResolver
apiViewResolver(org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager)
void
configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
org.springframework.web.multipart.commons.CommonsMultipartResolver
multipartResolver()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
-
-
-
Field Detail
-
UNLIMITED_UPLOAD_SIZE
public static final java.lang.Long UNLIMITED_UPLOAD_SIZE
named constant for allowing unlimited upload sizes.
-
MAX_IN_MEMORY_SIZE
public static final int MAX_IN_MEMORY_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
multipartResolver
@Bean @Scope(value="request", proxyMode=TARGET_CLASS) public org.springframework.web.multipart.commons.CommonsMultipartResolver multipartResolver()
-
apiViewResolver
@Bean public org.springframework.web.servlet.ViewResolver apiViewResolver(org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager)
-
configureContentNegotiation
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
- Specified by:
configureContentNegotiation
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
-