Class MultiValuedCollectionParamConverter
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.MultiValuedAbstractParamConverter
-
- org.jboss.resteasy.plugins.providers.MultiValuedCollectionParamConverter
-
- All Implemented Interfaces:
ParamConverter<Collection<?>>
public class MultiValuedCollectionParamConverter extends MultiValuedAbstractParamConverter implements ParamConverter<Collection<?>>
- Author:
- Marek Kopecky mkopecky@redhat.com, Ron Sigal rsigal@redhat.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.ws.rs.ext.ParamConverter
ParamConverter.Lazy
-
-
Field Summary
-
Fields inherited from class org.jboss.resteasy.plugins.providers.MultiValuedAbstractParamConverter
headerDelegate, paramConverter, separator, stringParameterInjector
-
-
Constructor Summary
Constructors Constructor Description MultiValuedCollectionParamConverter(StringParameterInjector stringParameterInjector, String separator, Constructor<?> constructor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<?>fromString(String param)Parse the supplied value and create an instance ofT.StringtoString(Collection<?> value)Convert the supplied value to a String.-
Methods inherited from class org.jboss.resteasy.plugins.providers.MultiValuedAbstractParamConverter
getSeparatorChar, stringify
-
-
-
-
Constructor Detail
-
MultiValuedCollectionParamConverter
public MultiValuedCollectionParamConverter(StringParameterInjector stringParameterInjector, String separator, Constructor<?> constructor)
-
-
Method Detail
-
toString
public String toString(Collection<?> value)
Description copied from interface:ParamConverterConvert the supplied value to a String.This method is reserved for future use. Proprietary JAX-RS extensions may leverage the method. Users should be aware that any such support for the method comes at the expense of producing non-portable code.
- Specified by:
toStringin interfaceParamConverter<Collection<?>>- Parameters:
value- the value of typeT.- Returns:
- a String representation of the value.
-
fromString
public Collection<?> fromString(String param)
Description copied from interface:ParamConverterParse the supplied value and create an instance ofT.- Specified by:
fromStringin interfaceParamConverter<Collection<?>>- Parameters:
param- the string value.- Returns:
- the newly created instance of
T.
-
-