@Configuration(friendlyName="Connector") public class Config extends Object implements RestClientConfigProvider
Modifier and Type | Method and Description |
---|---|
AssetClient |
getAssetClient() |
String |
getClientId() |
String |
getClientSecret() |
BaseEntityClient |
getCompanyClient() |
CustomObjectsClient |
getCustomObjectsClient() |
LeadClient |
getLeadClient() |
OpportunityClient |
getOpportunityClient() |
OpportunityClient |
getOpportunityRoleClient() |
ProgramClient |
getProgramClient() |
String |
getRestEndpointUrl() |
BaseEntityClient |
getSalesPersonClient() |
OAuthToken |
oAuthToken() |
void |
refreshToken() |
String |
restEndpointUrl() |
javax.ws.rs.client.Client |
rsClient() |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setRestEndpointUrl(String restEndpointUrl) |
void |
testConnectivity()
Validates the configured set of credentials.
|
public Config()
Config
.@TestConnectivity public void testConnectivity() throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
- If the credentials or the REST endpoint URL is invalid.public javax.ws.rs.client.Client rsClient()
rsClient
in interface RestClientConfigProvider
public OAuthToken oAuthToken()
oAuthToken
in interface RestClientConfigProvider
public void refreshToken()
refreshToken
in interface RestClientConfigProvider
public String restEndpointUrl()
restEndpointUrl
in interface RestClientConfigProvider
public String getRestEndpointUrl()
public void setRestEndpointUrl(String restEndpointUrl)
public String getClientSecret()
public void setClientSecret(String clientSecret)
public String getClientId()
public void setClientId(String clientId)
public CustomObjectsClient getCustomObjectsClient()
public LeadClient getLeadClient()
public AssetClient getAssetClient()
public BaseEntityClient getCompanyClient()
public ProgramClient getProgramClient()
public OpportunityClient getOpportunityClient()
public OpportunityClient getOpportunityRoleClient()
public BaseEntityClient getSalesPersonClient()
Copyright © 2010–2018. All rights reserved.