@ConnectionManagement(configElementName="config", friendlyName="Connection Managament type strategy") public class ConnectorConnectionStrategy extends Object
Constructor and Description |
---|
ConnectorConnectionStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String username,
String password)
Connect
|
String |
connectionId()
Returns the Connection ID.
|
void |
disconnect()
Disconnect
|
String |
getBaseApplicationUrl() |
Boolean |
getBypassSSLValidation() |
Client |
getClient() |
String |
getCsrfToken() |
Integer |
getMaxRetry() |
Boolean |
getOverridePUTAndDELETEWithPOST() |
String |
getProxyHostName() |
String |
getProxyPassword() |
Integer |
getProxyPort() |
String |
getProxyUsername() |
String |
getSessionId() |
boolean |
isConnected()
Are we connected
|
void |
setBaseApplicationUrl(String baseApplicationUrl) |
void |
setBypassSSLValidation(Boolean bypassSSLValidation) |
void |
setMaxRetry(Integer maxRetry) |
void |
setOverridePUTAndDELETEWithPOST(Boolean overridePUTAndDELETEWithPOST) |
void |
setProxyHostName(String proxyHostName) |
void |
setProxyPassword(String proxyPassword) |
void |
setProxyPort(Integer proxyPort) |
void |
setProxyUsername(String proxyUsername) |
@Connect @TestConnectivity public void connect(@ConnectionKey String username, @Password String password) throws org.mule.api.ConnectionException
username
- A usernamepassword
- A passwordorg.mule.api.ConnectionException
- Credentials are incorrect, trying to connect to unsupported
version or the DGC has no license for Connect@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
true
if connection is still valid, otherwise
false
@ConnectionIdentifier public String connectionId()
public String getSessionId()
public String getCsrfToken()
public String getBaseApplicationUrl()
public void setBaseApplicationUrl(String baseApplicationUrl)
public Client getClient()
public String getProxyHostName()
public void setProxyHostName(String proxyHostName)
public Integer getProxyPort()
public void setProxyPort(Integer proxyPort)
public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
public Boolean getOverridePUTAndDELETEWithPOST()
public void setOverridePUTAndDELETEWithPOST(Boolean overridePUTAndDELETEWithPOST)
public Integer getMaxRetry()
public void setMaxRetry(Integer maxRetry)
public Boolean getBypassSSLValidation()
public void setBypassSSLValidation(Boolean bypassSSLValidation)
Copyright © 2010–2019. All rights reserved.