|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mulesoft.cloudhub.client.CloudHubConnectionImpl
public class CloudHubConnectionImpl
| Nested Class Summary | |
|---|---|
static class |
CloudHubConnectionImpl.ObjectMapper
|
| Field Summary | |
|---|---|
protected String |
accessToken
|
protected String |
apiToken
|
protected com.sun.jersey.api.client.Client |
client
|
static String |
ENVIRONMENT_ID
|
protected String |
environmentId
|
protected com.google.gson.Gson |
gson
|
static String |
NEW_DEFAULT_URL
|
protected String |
password
|
protected String |
url
|
protected String |
username
|
| Constructor Summary | |
|---|---|
protected |
CloudHubConnectionImpl()
|
|
CloudHubConnectionImpl(String url,
String accessToken,
boolean debug)
|
|
CloudHubConnectionImpl(String url,
String accessToken,
String environmentId,
boolean debug)
|
| Method Summary | |
|---|---|
protected com.sun.jersey.api.client.WebResource.Builder |
addEnvironmentHeader(com.sun.jersey.api.client.WebResource.Builder pathResource)
|
protected com.sun.jersey.api.client.WebResource.Builder |
authorizeResource(com.sun.jersey.api.client.WebResource pathResource)
|
protected CloudHubException |
buildExpception(com.sun.jersey.api.client.ClientResponse clientResponse)
|
CloudHubDomainConnectionI |
connectWithDomain(String domain)
Returns a connection against a given domain of the CloudHub account |
com.mulesoft.ch.rest.model.Application |
createApplication(com.mulesoft.ch.rest.model.Application application)
Creates an application on your CloudHub account. |
protected com.sun.jersey.api.client.WebResource.Builder |
createApplicationBuilder(String path)
|
protected com.sun.jersey.api.client.WebResource.Builder |
createBuilder(String path)
|
protected com.sun.jersey.api.client.WebResource |
createResource(String path)
|
String |
getAccessToken()
|
String |
getPassowrd()
|
List<String> |
getSupportedMuleVersions()
This method returns all the supported mule versions by CloudHub |
String |
getUrl()
|
String |
getUsername()
|
protected void |
init(String url,
boolean debug)
|
boolean |
isDomainAvailable(String domain)
Checks if the domain is valid and available |
com.mulesoft.ch.rest.model.Account |
retrieveAccount()
Retrieves the CloudHub Account |
List<com.mulesoft.ch.rest.model.Application> |
retrieveApplications()
Retrieves All Applications from an specific CloudHub account |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NEW_DEFAULT_URL
public static final String ENVIRONMENT_ID
protected String url
protected com.sun.jersey.api.client.Client client
protected String username
protected String password
protected String apiToken
protected String environmentId
protected String accessToken
protected com.google.gson.Gson gson
| Constructor Detail |
|---|
protected CloudHubConnectionImpl()
public CloudHubConnectionImpl(String url,
String accessToken,
String environmentId,
boolean debug)
public CloudHubConnectionImpl(String url,
String accessToken,
boolean debug)
| Method Detail |
|---|
protected void init(String url,
boolean debug)
public CloudHubDomainConnectionI connectWithDomain(String domain)
CloudHubConnectionI
connectWithDomain in interface CloudHubConnectionIdomain - the domain to which you want to connect
CloudHubDomainConnectionImpl connected with the specified domain
public com.mulesoft.ch.rest.model.Account retrieveAccount()
throws CloudHubException
CloudHubConnectionI
retrieveAccount in interface CloudHubConnectionIAccount
CloudHubException - if there is an error when retrieving the account
public boolean isDomainAvailable(String domain)
throws CloudHubException
CloudHubConnectionI
isDomainAvailable in interface CloudHubConnectionIdomain - the domain to be validated
CloudHubException - if there is an error when validating the domainpublic List<com.mulesoft.ch.rest.model.Application> retrieveApplications()
CloudHubConnectionI
retrieveApplications in interface CloudHubConnectionIApplication
public com.mulesoft.ch.rest.model.Application createApplication(com.mulesoft.ch.rest.model.Application application)
throws CloudHubException
CloudHubConnectionI
createApplication in interface CloudHubConnectionIapplication - an instance of Application containing all the application's information
Application containing all the recently created application's information provided by CloudHub
CloudHubException - if there was an error while creating the application
public List<String> getSupportedMuleVersions()
throws CloudHubException
CloudHubConnectionI
getSupportedMuleVersions in interface CloudHubConnectionICloudHubExceptionprotected com.sun.jersey.api.client.WebResource.Builder createBuilder(String path)
protected com.sun.jersey.api.client.WebResource.Builder authorizeResource(com.sun.jersey.api.client.WebResource pathResource)
protected com.sun.jersey.api.client.WebResource.Builder addEnvironmentHeader(com.sun.jersey.api.client.WebResource.Builder pathResource)
protected com.sun.jersey.api.client.WebResource createResource(String path)
protected final com.sun.jersey.api.client.WebResource.Builder createApplicationBuilder(String path)
protected CloudHubException buildExpception(com.sun.jersey.api.client.ClientResponse clientResponse)
throws CloudHubException
CloudHubExceptionpublic String getUrl()
getUrl in interface CloudHubConnectionIpublic String getUsername()
getUsername in interface CloudHubConnectionIpublic String getPassowrd()
getPassowrd in interface CloudHubConnectionIpublic String getAccessToken()
getAccessToken in interface CloudHubConnectionI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||