public class ServiceLocatorClientProvider extends ServiceLocatorProvider
ServiceLocatorProvider
which contains helper static methods
that extract ServiceLocator
from client specific JAX-RS components.
See javadoc of ServiceLocatorProvider
for more details.
ServiceLocatorProvider
Constructor and Description |
---|
ServiceLocatorClientProvider() |
Modifier and Type | Method and Description |
---|---|
static org.glassfish.hk2.api.ServiceLocator |
getServiceLocator(ClientRequestContext clientRequestContext)
Extract and return service locator from
clientRequestContext . |
static org.glassfish.hk2.api.ServiceLocator |
getServiceLocator(ClientResponseContext clientResponseContext)
Extract and return service locator from
clientResponseContext . |
getServiceLocator, getServiceLocator, getServiceLocator
public static org.glassfish.hk2.api.ServiceLocator getServiceLocator(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.hk2.api.ServiceLocator getServiceLocator(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-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.