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>
ExtendsSupplierinterface withParameter.Sourceinformation.- 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 Tapply(ContainerRequest request)Parameter.SourcegetSource()ReturnsParameter.Sourcewhich 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:
applyin interfaceFunction<ContainerRequest,T>
-
getSource
public Parameter.Source getSource()
ReturnsParameter.Sourcewhich closely determines a function of the current supplier.- Returns:
- Source which a given parameter belongs to.
-
-