Class SingleValueExtractor<T>
java.lang.Object
org.glassfish.jersey.server.internal.inject.AbstractParamValueExtractor<T>
org.glassfish.jersey.server.internal.inject.SingleValueExtractor<T>
- Type Parameters:
T- extracted Java type.
- All Implemented Interfaces:
MultivaluedParameterExtractor<T>
final class SingleValueExtractor<T>
extends AbstractParamValueExtractor<T>
implements MultivaluedParameterExtractor<T>
Extract value of the parameter using a single parameter value and the underlying
param converter.-
Constructor Summary
ConstructorsConstructorDescriptionSingleValueExtractor(javax.ws.rs.ext.ParamConverter<T> converter, String parameterName, String defaultStringValue) Create new single value extractor. -
Method Summary
Methods inherited from class AbstractParamValueExtractor
defaultValue, fromString, getDefaultValueString, getName, isDefaultValueRegisteredMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MultivaluedParameterExtractor
getDefaultValueString, getName
-
Constructor Details
-
SingleValueExtractor
-
-
Method Details
-
extract
Extract the map entry identified by aname(and using the configureddefault value) from the suppliedmultivalued map. This implementation extracts the value of the parameter applying the underlyingparam converterto the first value found in the list of potential multiple parameter values. Any other values in the multi-value list will be ignored.- Specified by:
extractin interfaceMultivaluedParameterExtractor<T>- Parameters:
parameters- map of parameters.- Returns:
- extracted single parameter value.
-