Class 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.
    • 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.
    • Constructor Detail

      • IridaRestApiWebConfig

        public IridaRestApiWebConfig()
    • 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 interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer