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 -
Method Summary
Modifier and TypeMethodDescriptionextractParameter(org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext context) Returns a List containing all query parameters from the request, splitting values by commas if necessary.
-
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:
extractParameterin interfaceorg.jboss.resteasy.reactive.server.core.parameters.ParameterExtractor- Parameters:
context- The ResteasyReactiveRequestContext containing the HTTP request.- Returns:
- An immutable list of all extracted query parameters.
-