Package org.glassfish.jersey.client
Class InjectionManagerClientProvider
- java.lang.Object
-
- org.glassfish.jersey.InjectionManagerProvider
-
- org.glassfish.jersey.client.InjectionManagerClientProvider
-
public class InjectionManagerClientProvider extends InjectionManagerProvider
Extension ofInjectionManagerProviderwhich contains helper static methods that extractInjectionManagerfrom client specific JAX-RS components.See javadoc of
InjectionManagerProviderfor more details.- Since:
- 2.6
- Author:
- Miroslav Fuksa
- See Also:
InjectionManagerProvider
-
-
Constructor Summary
Constructors Constructor Description InjectionManagerClientProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InjectionManagergetInjectionManager(ClientRequestContext clientRequestContext)Extract and return injection manager fromclientRequestContext.static InjectionManagergetInjectionManager(ClientResponseContext clientResponseContext)Extract and return injection manager fromclientResponseContext.-
Methods inherited from class org.glassfish.jersey.InjectionManagerProvider
getInjectionManager, getInjectionManager, getInjectionManager
-
-
-
-
Method Detail
-
getInjectionManager
public static 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- whenclientRequestContextis not a default Jersey implementation provided by Jersey as argument in theClientRequestFilter.filter(jakarta.ws.rs.client.ClientRequestContext)method.
-
getInjectionManager
public static 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- whenclientResponseContextis not a default Jersey implementation provided by Jersey as argument in theClientResponseFilter.filter(jakarta.ws.rs.client.ClientRequestContext, jakarta.ws.rs.client.ClientResponseContext)method.
-
-