Class WebApplication

java.lang.Object
org.dspace.app.rest.WebApplication

@EnableScheduling @EnableCaching @Configuration public class WebApplication extends Object
Main configuration for the dspace web module.
Author:
Andrea Bollini (andrea.bollini at 4science.it), Tim Donohue, Luca Giamminonni (luca.giamminonni at 4science.it)
  • Constructor Details

    • WebApplication

      public WebApplication()
  • Method Details

    • generateSitemap

      @Scheduled(cron="${sitemap.cron:-}") public void generateSitemap() throws IOException, SQLException
      Throws:
      IOException
      SQLException
    • ldnExtractFromQueue

      @Scheduled(cron="${ldn.queue.extractor.cron:-}") public void ldnExtractFromQueue() throws IOException, SQLException
      Throws:
      IOException
      SQLException
    • ldnQueueTimeoutCheck

      @Scheduled(cron="${ldn.queue.timeout.checker.cron:-}") public void ldnQueueTimeoutCheck() throws IOException, SQLException
      Throws:
      IOException
      SQLException
    • solrDatabaseResync

      @Scheduled(cron="${solr-database-resync.cron:-}") public void solrDatabaseResync() throws Exception
      Throws:
      Exception
    • sendGoogleAnalyticsEvents

      @Scheduled(cron="${google.analytics.cron:-}") public void sendGoogleAnalyticsEvents()
    • dspaceContextListener

      @Bean @Order(2) protected DSpaceContextListener dspaceContextListener()
      Register the "DSpaceContextListener" so that it is loaded for this Application.
      Returns:
      DSpaceContextListener
    • dspaceWebappServletFilter

      @Bean @Order(1) protected jakarta.servlet.Filter dspaceWebappServletFilter()
      Register the DSpaceWebappServletFilter, which initializes the DSpace RequestService / SessionService
      Returns:
      DSpaceWebappServletFilter
    • dspaceRequestContextFilter

      @Bean @Order(2) protected jakarta.servlet.Filter dspaceRequestContextFilter()
      Register the DSpaceRequestContextFilter, a Filter which checks for open Context objects *after* a request has been fully processed, and closes them
      Returns:
      DSpaceRequestContextFilter
    • dspaceApiLoggingRequest

      @Bean @Order(3) protected jakarta.servlet.Filter dspaceApiLoggingRequest()
      Register the DSpaceAPIRequestLoggingFilter, a Filter that provides Mapped Diagnostic Context for the DSpace Server Webapp
      Returns:
      DSpaceRequestContextFilter
    • requestContextListener

      @Bean public RequestContextListener requestContextListener()
    • dspaceLinkRelationProvider

      @Bean protected org.springframework.hateoas.server.LinkRelationProvider dspaceLinkRelationProvider()
    • webMvcConfigurer

      @Bean public WebMvcConfigurer webMvcConfigurer()
    • setDefaultTimezone

      @PostConstruct public void setDefaultTimezone()