Class PrimitiveCharacterExtractor
java.lang.Object
org.glassfish.jersey.server.internal.inject.PrimitiveCharacterExtractor
- All Implemented Interfaces:
MultivaluedParameterExtractor<Object>
Value extractor for
Character and char parameters.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveCharacterExtractor(String parameter, String defaultStringValue, Object defaultPrimitiveTypeValue) -
Method Summary
Modifier and TypeMethodDescriptionExtract the map entry identified by aname(and using the configureddefault value) from the suppliedmultivalued map.Default entry value (string) that will be used in case the entry is not present in the suppliedmultivalued map.getName()Name of the parameter (map key) to be extracted from the suppliedmultivalued map.
-
Field Details
-
parameter
-
defaultStringValue
-
defaultPrimitiveTypeValue
-
-
Constructor Details
-
PrimitiveCharacterExtractor
-
-
Method Details
-
getName
Description copied from interface:MultivaluedParameterExtractorName of the parameter (map key) to be extracted from the suppliedmultivalued map.- Specified by:
getNamein interfaceMultivaluedParameterExtractor<Object>- Returns:
- name of the extracted parameter.
-
getDefaultValueString
Description copied from interface:MultivaluedParameterExtractorDefault entry value (string) that will be used in case the entry is not present in the suppliedmultivalued map.- Specified by:
getDefaultValueStringin interfaceMultivaluedParameterExtractor<Object>- Returns:
- default (back-up) map entry value.
-
extract
Description copied from interface:MultivaluedParameterExtractorExtract the map entry identified by aname(and using the configureddefault value) from the suppliedmultivalued map.- Specified by:
extractin interfaceMultivaluedParameterExtractor<Object>- Parameters:
parameters- multivalued parameter map.- Returns:
- custom Java type instance representing the extracted multivalued map entry.
-