Package org.glassfish.jersey.client
Class InjectionManagerClientProvider
java.lang.Object
org.glassfish.jersey.InjectionManagerProvider
org.glassfish.jersey.client.InjectionManagerClientProvider
Extension of
InjectionManagerProvider
which contains helper static methods
that extract InjectionManager
from client specific JAX-RS components.
See javadoc of InjectionManagerProvider
for more details.
- Since:
- 2.6
- Author:
- Miroslav Fuksa
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.glassfish.jersey.internal.inject.InjectionManager
getInjectionManager
(ClientRequestContext clientRequestContext) Extract and return injection manager fromclientRequestContext
.static org.glassfish.jersey.internal.inject.InjectionManager
getInjectionManager
(ClientResponseContext clientResponseContext) Extract and return injection manager fromclientResponseContext
.Methods inherited from class org.glassfish.jersey.InjectionManagerProvider
getInjectionManager, getInjectionManager, getInjectionManager
-
Constructor Details
-
InjectionManagerClientProvider
public InjectionManagerClientProvider()
-
-
Method Details
-
getInjectionManager
public static org.glassfish.jersey.internal.inject.InjectionManager getInjectionManager(ClientRequestContext clientRequestContext) Extract and return injection manager fromclientRequestContext
. The method can be used to inject custom types into aClientRequestFilter
.- Parameters:
clientRequestContext
- Client request context.- Returns:
- injection manager.
- Throws:
IllegalArgumentException
- whenclientRequestContext
is not a default Jersey implementation provided by Jersey as argument in theClientRequestFilter.filter(jakarta.ws.rs.client.ClientRequestContext)
method.
-
getInjectionManager
public static org.glassfish.jersey.internal.inject.InjectionManager getInjectionManager(ClientResponseContext clientResponseContext) Extract and return injection manager fromclientResponseContext
. The method can be used to inject custom types into aClientResponseFilter
.- Parameters:
clientResponseContext
- Client response context.- Returns:
- injection manager.
- Throws:
IllegalArgumentException
- whenclientResponseContext
is not a default Jersey implementation provided by Jersey as argument in theClientResponseFilter.filter(jakarta.ws.rs.client.ClientRequestContext, jakarta.ws.rs.client.ClientResponseContext)
method.
-