public class InjectionManagerClientProvider extends InjectionManagerProvider
InjectionManagerProvider
which contains helper static methods
that extract InjectionManager
from client specific JAX-RS components.
See javadoc of InjectionManagerProvider
for more details.
InjectionManagerProvider
Constructor and Description |
---|
InjectionManagerClientProvider() |
Modifier and Type | Method and Description |
---|---|
static org.glassfish.jersey.internal.inject.InjectionManager |
getInjectionManager(ClientRequestContext clientRequestContext)
Extract and return injection manager from
clientRequestContext . |
static org.glassfish.jersey.internal.inject.InjectionManager |
getInjectionManager(ClientResponseContext clientResponseContext)
Extract and return injection manager from
clientResponseContext . |
getInjectionManager, getInjectionManager, getInjectionManager
public static org.glassfish.jersey.internal.inject.InjectionManager getInjectionManager(ClientRequestContext clientRequestContext)
clientRequestContext
.
The method can be used to inject custom types into a ClientRequestFilter
.clientRequestContext
- Client request context.IllegalArgumentException
- when clientRequestContext
is not a default
Jersey implementation provided by Jersey as argument in the
ClientRequestFilter.filter(javax.ws.rs.client.ClientRequestContext)
method.public static org.glassfish.jersey.internal.inject.InjectionManager getInjectionManager(ClientResponseContext clientResponseContext)
clientResponseContext
.
The method can be used to inject custom types into a ClientResponseFilter
.clientResponseContext
- Client response context.IllegalArgumentException
- when clientResponseContext
is not a default
Jersey implementation provided by Jersey as argument in the
ClientResponseFilter.filter(javax.ws.rs.client.ClientRequestContext, javax.ws.rs.client.ClientResponseContext)
method.Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.