public abstract class ServiceClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected StorageCredentials |
credentials
Holds the StorageCredentials associated with this Service Client.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ServiceClient(StorageUri storageUri,
StorageCredentials credentials)
Creates an instance of the
ServiceClient class using the specified service endpoint and account
credentials. |
| Modifier and Type | Method and Description |
|---|---|
protected StorageRequest<ServiceClient,Void,ServiceProperties> |
downloadServicePropertiesImpl(RequestOptions options,
boolean signAsTable) |
StorageCredentials |
getCredentials()
Returns the storage credentials associated with this service client.
|
abstract RequestOptions |
getDefaultRequestOptions()
Gets the
RequestOptions that is used for requests associated with this ServiceClient |
URI |
getEndpoint()
Returns the base URI for this service client.
|
protected StorageRequest<ServiceClient,Void,ServiceStats> |
getServiceStatsImpl(RequestOptions options,
boolean signAsTable) |
StorageUri |
getStorageUri()
Returns the list of URIs for all locations.
|
protected boolean |
isUsePathStyleUris() |
protected void |
setCredentials(StorageCredentials credentials)
Sets the credentials to use with this service client.
|
protected void |
setStorageUri(StorageUri storageUri)
Sets the list of URIs for all locations.
|
protected StorageRequest<ServiceClient,Void,Void> |
uploadServicePropertiesImpl(ServiceProperties properties,
RequestOptions options,
OperationContext opContext,
boolean signAsTable) |
protected StorageCredentials credentials
protected ServiceClient(StorageUri storageUri, StorageCredentials credentials)
ServiceClient class using the specified service endpoint and account
credentials.storageUri - A StorageUri object which represents the service endpoint used to create the client.credentials - A StorageCredentials object which represents the account credentials.protected StorageRequest<ServiceClient,Void,ServiceProperties> downloadServicePropertiesImpl(RequestOptions options, boolean signAsTable)
protected StorageRequest<ServiceClient,Void,ServiceStats> getServiceStatsImpl(RequestOptions options, boolean signAsTable)
public final StorageCredentials getCredentials()
StorageCredentials object which represents the storage credentials associated with this client.public final URI getEndpoint()
java.net.URI object which represents the base URI for the service client.public final StorageUri getStorageUri()
StorageUri object which represents the list of URIs for all locations.protected boolean isUsePathStyleUris()
true if path-style URIs are used; otherwise, false.protected final void setCredentials(StorageCredentials credentials)
credentials - A StorageCredentials object which represents the credentials being assigned for the service
client.protected final void setStorageUri(StorageUri storageUri)
storageUri - A StorageUri object which represents the list of URIs for all locations.protected StorageRequest<ServiceClient,Void,Void> uploadServicePropertiesImpl(ServiceProperties properties, RequestOptions options, OperationContext opContext, boolean signAsTable) throws StorageException
StorageExceptionpublic abstract RequestOptions getDefaultRequestOptions()
RequestOptions that is used for requests associated with this ServiceClientRequestOptions object containing the values used by this ServiceClientCopyright © 2019. All rights reserved.