Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-9350

Possibility of creating multiple custom @RequestConditions

    Details

    • Last commented by a User:
      true

      Description

      Inspired on this link: https://github.com/rstoyanchev/spring-mvc-31-demo
      I made my custom implementation of @RequestCondition can be seen on this link: http://stackoverflow.com/a/10336769/492624

      As of now, we have to use subclass of RequestMappingHandlerMapping.
      Used `@Override` functions are getCustomTypeCondition, getCustomMethodCondition.

      But both of these are designed to handle only single RequestCondition

          @Override
          protected RequestCondition<?> getCustomMethodCondition(Method method) { ... }
      
          @Override
          protected RequestCondition<?> getCustomTypeCondition(Class<?> handlerType) { ... }
      

      This should be changed so, that it can map multiple @RequestCondition classes.

        Attachments

          Activity

            People

            • Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              marek.sebera Marek Sebera
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 3 weeks, 6 days ago