Class ParamValueFactoryWithSource<T>
- java.lang.Object
-
- org.glassfish.jersey.server.spi.internal.ParamValueFactoryWithSource<T>
-
- Type Parameters:
T
- This must be the type of entity for which this is a factory.
- All Implemented Interfaces:
Function<ContainerRequest,T>
public final class ParamValueFactoryWithSource<T> extends Object implements Function<ContainerRequest,T>
ExtendsSupplier
interface withParameter.Source
information.- Author:
- Petr Bouda
-
-
Constructor Summary
Constructors Constructor Description ParamValueFactoryWithSource(Function<ContainerRequest,T> paramFunction, Parameter.Source parameterSource)
Wrap provided param supplier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
apply(ContainerRequest request)
Parameter.Source
getSource()
ReturnsParameter.Source
which closely determines a function of the current supplier.
-
-
-
Constructor Detail
-
ParamValueFactoryWithSource
public ParamValueFactoryWithSource(Function<ContainerRequest,T> paramFunction, Parameter.Source parameterSource)
Wrap provided param supplier.- Parameters:
paramFunction
- param supplier to be wrapped.parameterSource
- param source.
-
-
Method Detail
-
apply
public T apply(ContainerRequest request)
- Specified by:
apply
in interfaceFunction<ContainerRequest,T>
-
getSource
public Parameter.Source getSource()
ReturnsParameter.Source
which closely determines a function of the current supplier.- Returns:
- Source which a given parameter belongs to.
-
-