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>
Extends
Supplier interface with
Parameter.Source information.- Author:
- Petr Bouda
-
Constructor Summary
ConstructorsConstructorDescriptionParamValueFactoryWithSource(Function<ContainerRequest, T> paramFunction, Parameter.Source parameterSource) Wrap provided param supplier. -
Method Summary
Modifier and TypeMethodDescriptionapply(ContainerRequest request) ReturnsParameter.Sourcewhich closely determines a function of the current supplier.
-
Constructor Details
-
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 Details
-
apply
- Specified by:
applyin interfaceFunction<ContainerRequest,T>
-
getSource
ReturnsParameter.Sourcewhich closely determines a function of the current supplier.- Returns:
- Source which a given parameter belongs to.
-