Interface MultivaluedParameterExtractor<T>
-
public interface MultivaluedParameterExtractor<T>Provider that converts the values of an entry of a givennamefrom the suppliedmultivalued mapinto an object of a custom Java type.- Author:
- Paul Sandoz, Marek Potociar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Textract(MultivaluedMap<String,String> parameters)Extract the map entry identified by aname(and using the configureddefault value) from the suppliedmultivalued map.StringgetDefaultValueString()Default entry value (string) that will be used in case the entry is not present in the suppliedmultivalued map.StringgetName()Name of the parameter (map key) to be extracted from the suppliedmultivalued map.
-
-
-
Method Detail
-
getName
String getName()
Name of the parameter (map key) to be extracted from the suppliedmultivalued map.- Returns:
- name of the extracted parameter.
-
getDefaultValueString
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(MultivaluedMap<String,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.
-
-