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:
Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기