Class SpringMultiValueListParamExtractor

java.lang.Object
io.quarkus.spring.web.resteasy.reactive.runtime.SpringMultiValueListParamExtractor
All Implemented Interfaces:
org.jboss.resteasy.reactive.server.core.parameters.ParameterExtractor

public class SpringMultiValueListParamExtractor extends Object implements org.jboss.resteasy.reactive.server.core.parameters.ParameterExtractor
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.jboss.resteasy.reactive.server.core.parameters.ParameterExtractor

    org.jboss.resteasy.reactive.server.core.parameters.ParameterExtractor.ParameterCallback
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    extractParameter(org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext context)
    Returns a List containing all query parameters from the request, splitting values by commas if necessary.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpringMultiValueListParamExtractor

      public SpringMultiValueListParamExtractor()
  • Method Details

    • extractParameter

      public Object extractParameter(org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext context)
      Returns a List containing all query parameters from the request, splitting values by commas if necessary.

      Spring MVC maps comma-delimited request parameters into a List<String>. To maintain compatibility, this method follows the same approach: If a query parameter contains multiple values, separated by commas, it adds those multiple values; otherwise, it is added directly.

      Example:

       ?tags=java,quarkus&category=framework
       
      would produce:
       ["java", "quarkus", "framework"]
       

      Specified by:
      extractParameter in interface org.jboss.resteasy.reactive.server.core.parameters.ParameterExtractor
      Parameters:
      context - The ResteasyReactiveRequestContext containing the HTTP request.
      Returns:
      An immutable list of all extracted query parameters.