@ConnectionManagement(friendlyName="Configuration", configElementName="config") public class Config extends Object
Constructor and Description |
---|
Config() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String apiKey,
String versionDate)
Connect, this method will use one api call to validate the api key
|
String |
connectionId()
Get connection id
|
void |
disconnect()
Disconnect
|
com.ibm.watson.developer_cloud.visual_recognition.v3.VisualRecognition |
getService() |
boolean |
isConnected()
Are we connected
|
void |
setService(com.ibm.watson.developer_cloud.visual_recognition.v3.VisualRecognition service) |
public com.ibm.watson.developer_cloud.visual_recognition.v3.VisualRecognition getService()
public void setService(com.ibm.watson.developer_cloud.visual_recognition.v3.VisualRecognition service)
@Connect @TestConnectivity public void connect(@ConnectionKey String apiKey, @Default(value="2016-05-20") String versionDate) throws org.mule.api.ConnectionException
apiKey
- Your API key.versionDate
- The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD
format. The current version is 2016-05-20.org.mule.api.ConnectionException
- If there is any connectivity error like an invalid apiKey.@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
@ConnectionIdentifier public String connectionId()
Copyright © 2010–2017. All rights reserved.