ServiceClient Class
- java.
lang. Object - com.
microsoft. azure. storage. ServiceClient
- com.
public class ServiceClient
Provides a client for accessing the Microsoft Azure Storage service.
Field Summary
Modifier and Type | Field and Description |
---|---|
Storage |
credentials
Holds the StorageCredentials associated with this Service Client. |
Constructor Summary
Constructor | Description |
---|---|
ServiceClient(final StorageUri storageUri, final StorageCredentials credentials) |
Creates an instance of the class using the specified service endpoint and account credentials. |
Method Summary
Field Details
credentials
protected StorageCredentials credentials
Holds the StorageCredentials associated with this Service Client.
Constructor Details
ServiceClient
protected ServiceClient(final StorageUri storageUri, final StorageCredentials credentials)
Creates an instance of the class using the specified service endpoint and account credentials.
Parameters:
Method Details
downloadServicePropertiesImpl
protected StorageRequest
Parameters:
getCredentials
public final StorageCredentials getCredentials()
Returns the storage credentials associated with this service client.
Returns:
getDefaultRequestOptions
public abstract RequestOptions getDefaultRequestOptions()
Gets the RequestOptions that is used for requests associated with this
Returns:
ServiceClient
getEndpoint
public final URI getEndpoint()
Returns the base URI for this service client.
Returns:
java.net.URI
object which represents the base URI for the service client.getServiceStatsImpl
protected StorageRequest
Parameters:
getStorageUri
public final StorageUri getStorageUri()
Returns the list of URIs for all locations.
Returns:
isUsePathStyleUris
protected boolean isUsePathStyleUris()
Returns:
true
if path-style URIs are used; otherwise, false
.
setCredentials
protected final void setCredentials(final StorageCredentials credentials)
Sets the credentials to use with this service client.
Parameters:
setStorageUri
protected final void setStorageUri(final StorageUri storageUri)
Sets the list of URIs for all locations.
Parameters:
uploadServicePropertiesImpl
protected StorageRequest
Parameters: