Interface MultivaluedParameterExtractor<T>
-
- All Known Implementing Classes:
CollectionExtractor
,CollectionExtractor.ListValueOf
,CollectionExtractor.SetValueOf
,CollectionExtractor.SortedSetValueOf
,PrimitiveCharacterExtractor
,PrimitiveValueOfExtractor
,SingleStringValueExtractor
,SingleValueExtractor
,StringCollectionExtractor
,StringCollectionExtractor.ListString
,StringCollectionExtractor.SetString
,StringCollectionExtractor.SortedSetString
public interface MultivaluedParameterExtractor<T>
Provider that converts the values of an entry of a givenname
from the suppliedmultivalued map
into an object of a custom Java type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
extract(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> parameters)
Extract the map entry identified by aname
(and using the configureddefault value
) from the suppliedmultivalued map
.java.lang.String
getDefaultValueString()
Default entry value (string) that will be used in case the entry is not present in the suppliedmultivalued map
.java.lang.String
getName()
Name of the parameter (map key) to be extracted from the suppliedmultivalued map
.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Name of the parameter (map key) to be extracted from the suppliedmultivalued map
.- Returns:
- name of the extracted parameter.
-
getDefaultValueString
java.lang.String getDefaultValueString()
Default entry value (string) that will be used in case the entry is not present in the suppliedmultivalued map
.- Returns:
- default (back-up) map entry value.
-
extract
T extract(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> parameters)
Extract the map entry identified by aname
(and using the configureddefault value
) from the suppliedmultivalued map
.- Parameters:
parameters
- multivalued parameter map.- Returns:
- custom Java type instance representing the extracted multivalued map entry.
-
-