public abstract class QTestApiWebServiceClient<T extends QTestApiWebServiceClient<T>> extends ApiWebServiceClient<T>
| Modifier and Type | Field and Description |
|---|---|
protected QTestCredentialsProvider |
credentialsProvider |
protected java.util.List<Unmarshaller<AuthServiceException,JsonObject>> |
exceptionUnmarshallers |
protected java.util.concurrent.ExecutorService |
executorService |
protected Signer |
signer |
client, configuration, endpoint, requestHandlers, timeOffset| Constructor and Description |
|---|
QTestApiWebServiceClient()
Constructs a new client to invoke service method on DefectService using
the default qTest credentials provider and default client configuration options.
|
QTestApiWebServiceClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on DefectService using
the default qTest credentials provider and client configuration options.
|
QTestApiWebServiceClient(QTestCredentials credentials)
Constructs a new client to invoke service method on DefectService using
the specified qTest credentials.
|
QTestApiWebServiceClient(QTestCredentials credentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on DefectService using
the specified qTest credentials and client configuration options.
|
QTestApiWebServiceClient(QTestCredentialsProvider credentialsProvider)
Constructs a new client to invoke service method on DefectService using
the specified qTest credentials provider and client configuration options.
|
QTestApiWebServiceClient(QTestCredentialsProvider credentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on DefectService using
the specified qTest credentials provider and client configuration options.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
init() |
protected <X> X |
invoke(Request request,
Unmarshaller<X,JsonUnmarshallerContext> unmarshaller) |
void |
shutdown()
Shutdown this client object, release any resources that might be held
open.
|
QTestApiWebServiceClient<T> |
withEndpoint(java.lang.String endpoint)
Sets the service endpoint.
|
addRequestHandler, createExecutionContext, createHttpAuthClient, getTimeOffset, removeRequestHandler, setConfiguration, setEndpoint, setTimeOffset, withConfiguration, withRequestHandler, withTimeOffsetprotected QTestCredentialsProvider credentialsProvider
protected Signer signer
protected final java.util.List<Unmarshaller<AuthServiceException,JsonObject>> exceptionUnmarshallers
protected java.util.concurrent.ExecutorService executorService
public QTestApiWebServiceClient()
public QTestApiWebServiceClient(ClientConfiguration clientConfiguration)
clientConfiguration - The client configuration options controlling how this
client connects to DefectServicepublic QTestApiWebServiceClient(QTestCredentials credentials)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.public QTestApiWebServiceClient(QTestCredentials credentials, ClientConfiguration clientConfiguration)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to DefectServicepublic QTestApiWebServiceClient(QTestCredentialsProvider credentialsProvider)
credentialsProvider - The qTest credentials provider which will provide
credentials to authenticate request with qTest services.public QTestApiWebServiceClient(QTestCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration)
credentialsProvider - The qTest credentials provider which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to DefectServiceprotected void init()
protected <X> X invoke(Request request, Unmarshaller<X,JsonUnmarshallerContext> unmarshaller)
public QTestApiWebServiceClient<T> withEndpoint(java.lang.String endpoint) throws java.lang.IllegalArgumentException
endpoint - the given service endpoint URL.java.lang.IllegalArgumentException - if an error occurs during setting the endpoint.public void shutdown()
ApiWebServiceClientshutdown in class ApiWebServiceClient<T extends QTestApiWebServiceClient<T>>