Class AsyncResponseValueParamProvider
java.lang.Object
org.glassfish.jersey.server.internal.inject.AsyncResponseValueParamProvider
- All Implemented Interfaces:
ValueParamProvider
Value factory provider supporting the
Suspended
injection annotation.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.jersey.server.spi.internal.ValueParamProvider
ValueParamProvider.Priority, ValueParamProvider.PriorityType
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAsyncResponseValueParamProvider
(javax.inject.Provider<AsyncContext> asyncContextProvider) Initialize the provider. -
Method Summary
Modifier and TypeMethodDescriptionGets the priority of this provider.Function<ContainerRequest,
javax.ws.rs.container.AsyncResponse> getValueProvider
(Parameter parameter) Get an injected value provider for the parameter.
-
Field Details
-
asyncContextProvider
-
-
Constructor Details
-
AsyncResponseValueParamProvider
Initialize the provider.- Parameters:
asyncContextProvider
- async processing context provider.
-
-
Method Details
-
getValueProvider
public Function<ContainerRequest,javax.ws.rs.container.AsyncResponse> getValueProvider(Parameter parameter) Description copied from interface:ValueParamProvider
Get an injected value provider for the parameter. May returnnull
in case the parameter is not supported by the value provider.- Specified by:
getValueProvider
in interfaceValueParamProvider
- Parameters:
parameter
- parameter requesting the value provider instance.- Returns:
- injected parameter value provider. Returns
null
if parameter is not supported.
-
getPriority
Description copied from interface:ValueParamProvider
Gets the priority of this provider.- Specified by:
getPriority
in interfaceValueParamProvider
- Returns:
- the priority of this provider.
- See Also:
-