@ConnectionManagement(configElementName="azureConfig", friendlyName="Azure Service Bus") public class UsernamePasswordConnectionStrategy extends AzureConnectionStrategy
amqpClient, blobContainer, muleContext, namespace, restClient
Constructor and Description |
---|
UsernamePasswordConnectionStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String namespace,
String userName,
String password,
String blobAccountName,
String blobAccountKey,
String blobContainerName)
Connect
|
String |
connectionId()
namespace_keyname
|
String |
getSASToken(String url) |
void |
setKey(String key) |
void |
setNamespace(String namespace) |
createAMQPClient, createRestClient, getBaseUrl
disconnect, getAMQPClient, getCloudBlobContainer, getRestClient, getSkipConnectivityTest, isConnected, setMuleContext, setSkipConnectivityTest, testConnectivity, testConnectivityAmqpClient
@Connect @TestConnectivity public void connect(@ConnectionKey@FriendlyName(value="Service Namespace")@Placement(group="Connection",order=1) String namespace, @ConnectionKey@FriendlyName(value="Shared Access Key Name")@Placement(group="Connection",order=2) String userName, @FriendlyName(value="Shared Access Key")@Placement(group="Connection",order=3)@Password String password, @FriendlyName(value="Storage Account Name")@Placement(group="Blob Storage Connection")@Summary(value="(Optional) The account name of the Blob Storage that will be used to store large messages.")@Optional String blobAccountName, @FriendlyName(value="Storage Access Key")@Placement(group="Blob Storage Connection")@Password@Summary(value="(Optional) The account key of the Blob Storage that will be used to store large messages.")@Optional String blobAccountKey, @FriendlyName(value="Container Name")@Placement(group="Blob Storage Connection")@Summary(value="(Optional) The container name in the Blob Storage that will be used to store large messages. If this parameter is not provided a default container will be created")@Optional String blobContainerName) throws org.mule.api.ConnectionException
userName
- Shared Key Namepassword
- Shared Keynamespace
- Azure Service Namespaceorg.mule.api.ConnectionException
@ConnectionIdentifier public String connectionId()
public String getSASToken(String url) throws ServiceBusException
getSASToken
in interface ConnectionStrategy
getSASToken
in class BaseConnectionStrategy
ServiceBusException
public void setKey(String key)
public void setNamespace(String namespace)
Copyright © 2010–2017. All rights reserved.