Class ResteasyClientImpl
- java.lang.Object
-
- org.jboss.resteasy.client.jaxrs.internal.ResteasyClientImpl
-
- All Implemented Interfaces:
javax.ws.rs.client.Client
,javax.ws.rs.core.Configurable<javax.ws.rs.client.Client>
,ResteasyClient
- Direct Known Subclasses:
MpClient
public class ResteasyClientImpl extends Object implements ResteasyClient
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected ExecutorService
asyncInvocationExecutor
protected boolean
cleanupExecutor
protected boolean
closed
protected ClientConfiguration
configuration
protected ClientHttpEngine
httpEngine
protected ScheduledExecutorService
scheduledExecutorService
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResteasyClientImpl(ClientHttpEngine httpEngine, ExecutorService asyncInvocationExecutor, boolean cleanupExecutor, ScheduledExecutorService scheduledExecutorService, ClientConfiguration configuration)
protected
ResteasyClientImpl(ClientHttpEngine httpEngine, ExecutorService asyncInvocationExecutor, boolean cleanupExecutor, ClientConfiguration configuration)
-
Method Summary
-
-
-
Field Detail
-
httpEngine
protected final ClientHttpEngine httpEngine
-
asyncInvocationExecutor
protected final ExecutorService asyncInvocationExecutor
-
scheduledExecutorService
protected final ScheduledExecutorService scheduledExecutorService
-
configuration
protected ClientConfiguration configuration
-
closed
protected boolean closed
-
cleanupExecutor
protected boolean cleanupExecutor
-
-
Constructor Detail
-
ResteasyClientImpl
protected ResteasyClientImpl(ClientHttpEngine httpEngine, ExecutorService asyncInvocationExecutor, boolean cleanupExecutor, ScheduledExecutorService scheduledExecutorService, ClientConfiguration configuration)
-
ResteasyClientImpl
protected ResteasyClientImpl(ClientHttpEngine httpEngine, ExecutorService asyncInvocationExecutor, boolean cleanupExecutor, ClientConfiguration configuration)
-
-
Method Detail
-
httpEngine
public ClientHttpEngine httpEngine()
- Specified by:
httpEngine
in interfaceResteasyClient
-
asyncInvocationExecutor
public ExecutorService asyncInvocationExecutor()
- Specified by:
asyncInvocationExecutor
in interfaceResteasyClient
-
getScheduledExecutor
public ScheduledExecutorService getScheduledExecutor()
- Specified by:
getScheduledExecutor
in interfaceResteasyClient
-
abortIfClosed
public void abortIfClosed()
- Specified by:
abortIfClosed
in interfaceResteasyClient
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceResteasyClient
-
close
public void close()
- Specified by:
close
in interfacejavax.ws.rs.client.Client
-
getConfiguration
public javax.ws.rs.core.Configuration getConfiguration()
- Specified by:
getConfiguration
in interfacejavax.ws.rs.core.Configurable<javax.ws.rs.client.Client>
-
getSslContext
public SSLContext getSslContext()
- Specified by:
getSslContext
in interfacejavax.ws.rs.client.Client
-
getHostnameVerifier
public HostnameVerifier getHostnameVerifier()
- Specified by:
getHostnameVerifier
in interfacejavax.ws.rs.client.Client
-
property
public ResteasyClientImpl property(String name, Object value)
- Specified by:
property
in interfacejavax.ws.rs.core.Configurable<javax.ws.rs.client.Client>
-
register
public ResteasyClientImpl register(Class<?> componentClass)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<javax.ws.rs.client.Client>
-
register
public ResteasyClientImpl register(Class<?> componentClass, int priority)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<javax.ws.rs.client.Client>
-
register
public ResteasyClientImpl register(Class<?> componentClass, Class<?>... contracts)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<javax.ws.rs.client.Client>
-
register
public ResteasyClientImpl register(Class<?> componentClass, Map<Class<?>,Integer> contracts)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<javax.ws.rs.client.Client>
-
register
public ResteasyClientImpl register(Object component)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<javax.ws.rs.client.Client>
-
register
public ResteasyClientImpl register(Object component, int priority)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<javax.ws.rs.client.Client>
-
register
public ResteasyClientImpl register(Object component, Class<?>... contracts)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<javax.ws.rs.client.Client>
-
register
public ResteasyClientImpl register(Object component, Map<Class<?>,Integer> contracts)
- Specified by:
register
in interfacejavax.ws.rs.core.Configurable<javax.ws.rs.client.Client>
-
target
public ResteasyWebTarget target(String uri) throws IllegalArgumentException, NullPointerException
- Specified by:
target
in interfacejavax.ws.rs.client.Client
- Specified by:
target
in interfaceResteasyClient
- Throws:
IllegalArgumentException
NullPointerException
-
target
public ResteasyWebTarget target(URI uri) throws NullPointerException
- Specified by:
target
in interfacejavax.ws.rs.client.Client
- Specified by:
target
in interfaceResteasyClient
- Throws:
NullPointerException
-
target
public ResteasyWebTarget target(javax.ws.rs.core.UriBuilder uriBuilder) throws NullPointerException
- Specified by:
target
in interfacejavax.ws.rs.client.Client
- Specified by:
target
in interfaceResteasyClient
- Throws:
NullPointerException
-
target
public ResteasyWebTarget target(javax.ws.rs.core.Link link) throws NullPointerException
- Specified by:
target
in interfacejavax.ws.rs.client.Client
- Specified by:
target
in interfaceResteasyClient
- Throws:
NullPointerException
-
invocation
public javax.ws.rs.client.Invocation.Builder invocation(javax.ws.rs.core.Link link) throws NullPointerException, IllegalArgumentException
- Specified by:
invocation
in interfacejavax.ws.rs.client.Client
- Throws:
NullPointerException
IllegalArgumentException
-
createClientWebTarget
protected ResteasyWebTarget createClientWebTarget(ResteasyClientImpl client, String uri, ClientConfiguration configuration)
-
createClientWebTarget
protected ResteasyWebTarget createClientWebTarget(ResteasyClientImpl client, URI uri, ClientConfiguration configuration)
-
createClientWebTarget
protected ResteasyWebTarget createClientWebTarget(ResteasyClientImpl client, javax.ws.rs.core.UriBuilder uriBuilder, ClientConfiguration configuration)
-
-