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.- Author:
- Marek Potociar
-
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.
-
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.
-