
io.muserver.rest.CollectionParameterStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mu-server Show documentation
Show all versions of mu-server Show documentation
A simple but powerful web server framework
The newest version!
package io.muserver.rest;
/**
* Specifies how to handle lists or sets in querystring parameters
* This can be used to allow clients to send lists of values in comma-separated values to query string parameters in JAX-RS methods.
*/
public enum CollectionParameterStrategy {
/**
* Splits parameter values on commas, for example a,b,c
would result in a list of 3 strings.
* With this option enabled, values are trimmed and empty values are removed, so a,%20b,
would be a list with 2 values ("a" and "b").
*/
SPLIT_ON_COMMA,
/**
* No transformation is applied, for example a,b,c
would result in a single string with value "a,b,c"
* This option follows the JAX-RS standard.
*/
NO_TRANSFORM
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy