final class AsyncResponseValueParamProvider extends java.lang.Object implements ValueParamProvider
Suspended
injection annotation.ValueParamProvider.Priority, ValueParamProvider.PriorityType
Modifier and Type | Field and Description |
---|---|
private javax.inject.Provider<AsyncContext> |
asyncContextProvider |
Constructor and Description |
---|
AsyncResponseValueParamProvider(javax.inject.Provider<AsyncContext> asyncContextProvider)
Initialize the provider.
|
Modifier and Type | Method and Description |
---|---|
ValueParamProvider.PriorityType |
getPriority()
Gets the priority of this provider.
|
java.util.function.Function<ContainerRequest,javax.ws.rs.container.AsyncResponse> |
getValueProvider(Parameter parameter)
Get an injected value provider for the parameter.
|
private final javax.inject.Provider<AsyncContext> asyncContextProvider
public AsyncResponseValueParamProvider(javax.inject.Provider<AsyncContext> asyncContextProvider)
asyncContextProvider
- async processing context provider.public java.util.function.Function<ContainerRequest,javax.ws.rs.container.AsyncResponse> getValueProvider(Parameter parameter)
ValueParamProvider
null
in case the parameter is not supported by the value provider.getValueProvider
in interface ValueParamProvider
parameter
- parameter requesting the value provider instance.null
if parameter is not supported.public ValueParamProvider.PriorityType getPriority()
ValueParamProvider
getPriority
in interface ValueParamProvider
ValueParamProvider.PriorityType
,
ValueParamProvider.Priority