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 InjectionManager
getInjectionManager
(ClientRequestContext clientRequestContext) Extract and return injection manager fromclientRequestContext
.static 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
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
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.
-