public abstract class AbstractClient<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected T |
client |
protected String |
endpoint |
| Constructor and Description |
|---|
AbstractClient(String endpoint,
Class<T> serviceClass,
int gzipThreshold,
boolean log,
int timeout)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureSSL()
Configures the SSL environment.
|
protected void |
configureTimeout(int timeout)
Configures the timeout (in seconds)
|
protected void |
initClient(Class<T> serviceClass,
int gzipThreshold,
boolean log)
Standard service initialization.
|
public AbstractClient(String endpoint, Class<T> serviceClass, int gzipThreshold, boolean log, int timeout)
endpoint - Connection URLserviceClass - The class of the servicegzipThreshold - threshold in KB, all packets greater than this one
will be gzipped(use -1 to disable in any case)log - True if you want the requests to be loggedtimeout - Timeout for the SOAP requests (in seconds, default 60)protected void initClient(Class<T> serviceClass, int gzipThreshold, boolean log)
protected void configureSSL()
protected void configureTimeout(int timeout)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.