public class RestClientFactory extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
RestClientFactory() |
|
RestClientFactory(URI base,
String username,
String apiKey,
VersionInfo clientApiVersion,
boolean logHttp,
boolean sslCertDisabled) |
|
RestClientFactory(URI base,
String username,
String apiKey,
VersionInfo clientApiVersion,
boolean logHttp,
boolean sslCertDisabled,
Consumer<org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder> resteasyClientBuilderModifier)
This constructor will provider an extension point for other class to
customize resteasy client builder.
|
protected RestClientFactory()
public RestClientFactory(URI base, String username, String apiKey, VersionInfo clientApiVersion, boolean logHttp, boolean sslCertDisabled)
public RestClientFactory(URI base, String username, String apiKey, VersionInfo clientApiVersion, boolean logHttp, boolean sslCertDisabled, Consumer<org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder> resteasyClientBuilderModifier)
base
- zanata server REST api base urlusername
- zanata usernameapiKey
- zanata api keyclientApiVersion
- client api versionlogHttp
- whether to log http request and responsesslCertDisabled
- whether ssl certificate verification will be disabledresteasyClientBuilderModifier
- resteasy client builder customization functionpublic VersionInfo getServerVersionInfo()
public void performVersionCheck()
protected URI getBaseUri()
protected String getUrlPrefix()
protected javax.ws.rs.client.Client getClient()
public int compareToServerVersion(String version)
version
- The version to against which to compare the server version.public AccountClient getAccountClient()
public AsyncProcessClient getAsyncProcessClient()
public CopyTransClient getCopyTransClient()
public FileResourceClient getFileResourceClient()
public GlossaryClient getGlossaryClient()
public ProjectClient getProjectClient(String projectSlug)
public ProjectIterationClient getProjectIterationClient(String projectSlug, String versionSlug)
public ProjectsClient getProjectsClient()
public SourceDocResourceClient getSourceDocResourceClient(String projectSlug, String versionSlug)
public StatisticsResourceClient getStatisticsClient()
public TransDocResourceClient getTransDocResourceClient(String projectSlug, String versionSlug)
public ProjectIterationLocalesClient getProjectLocalesClient(String projectSlug, String versionSlug)
Copyright © 2018 Zanata Project. All rights reserved.