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:
java.util.function.Function<ContainerRequest,T>
public final class ParamValueFactoryWithSource<T> extends java.lang.Object implements java.util.function.Function<ContainerRequest,T>
ExtendsSupplierinterface withParameter.Sourceinformation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Function<ContainerRequest,T>parameterFunctionprivate Parameter.SourceparameterSource
-
Constructor Summary
Constructors Constructor Description ParamValueFactoryWithSource(java.util.function.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.
-
-
-
Field Detail
-
parameterFunction
private final java.util.function.Function<ContainerRequest,T> parameterFunction
-
parameterSource
private final Parameter.Source parameterSource
-
-
Constructor Detail
-
ParamValueFactoryWithSource
public ParamValueFactoryWithSource(java.util.function.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 interfacejava.util.function.Function<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.
-
-