Class ParameterValueHelper
java.lang.Object
org.glassfish.jersey.server.spi.internal.ParameterValueHelper
Utility methods for retrieving values or value providers for the
parameterized
resource model components.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<ParamValueFactoryWithSource<?>> createValueProviders
(Collection<ValueParamProvider> valueSuppliers, Parameterized parameterized) Create list of parameter value providers for the givenparameterized
resource model component.static Object[]
getParameterValues
(List<ParamValueFactoryWithSource<?>> valueProviders, ContainerRequest request) Get the array of parameter values.private static Function
<ContainerRequest, ?> getParamValueProvider
(Collection<ValueParamProvider> valueProviders, Parameter parameter) private static <T> ParamValueFactoryWithSource
<T> wrapParamValueProvider
(Function<ContainerRequest, T> factory, Parameter.Source paramSource)
-
Constructor Details
-
ParameterValueHelper
private ParameterValueHelper()Prevents instantiation.
-
-
Method Details
-
getParameterValues
public static Object[] getParameterValues(List<ParamValueFactoryWithSource<?>> valueProviders, ContainerRequest request) Get the array of parameter values.- Parameters:
valueProviders
- a list of value providers.- Returns:
- array of parameter values provided by the value providers.
-
createValueProviders
public static List<ParamValueFactoryWithSource<?>> createValueProviders(Collection<ValueParamProvider> valueSuppliers, Parameterized parameterized) Create list of parameter value providers for the givenparameterized
resource model component.- Parameters:
valueSuppliers
- all registered value suppliers.parameterized
- parameterized resource model component.- Returns:
- list of parameter value providers for the parameterized component.
-
wrapParamValueProvider
private static <T> ParamValueFactoryWithSource<T> wrapParamValueProvider(Function<ContainerRequest, T> factory, Parameter.Source paramSource) -
getParamValueProvider
private static Function<ContainerRequest,?> getParamValueProvider(Collection<ValueParamProvider> valueProviders, Parameter parameter)
-