T
- This must be the type of entity for which this is a factory.public final class ParamValueFactoryWithSource<T> extends Object implements Function<ContainerRequest,T>
Supplier
interface with
org.glassfish.jersey.server.model.Parameter.Source
information.Constructor and Description |
---|
ParamValueFactoryWithSource(Function<ContainerRequest,T> paramFunction,
Parameter.Source parameterSource)
Wrap provided param supplier.
|
Modifier and Type | Method and Description |
---|---|
T |
apply(ContainerRequest request) |
Parameter.Source |
getSource()
Returns
org.glassfish.jersey.server.model.Parameter.Source
which closely determines a function of the current supplier. |
public ParamValueFactoryWithSource(Function<ContainerRequest,T> paramFunction, Parameter.Source parameterSource)
paramFunction
- param supplier to be wrapped.parameterSource
- param source.public T apply(ContainerRequest request)
apply
in interface Function<ContainerRequest,T>
public Parameter.Source getSource()
org.glassfish.jersey.server.model.Parameter.Source
which closely determines a function of the current supplier.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.