public class StorageUri extends Object
Constructor and Description |
---|
StorageUri(URI primaryUri)
Initializes a new instance of the
StorageUri class using the specified URI. |
StorageUri(URI primaryUri,
URI secondaryUri)
Initializes a new instance of the
StorageUri class using the specified primary and secondary URIs. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
equals(StorageUri other)
Indicates whether a
StorageUri object is equal to the current StorageUri object. |
URI |
getPrimaryUri()
Gets the endpoint for the primary location for the storage account.
|
String |
getQuery()
Returns the decoded query component of this
StorageUri object. |
URI |
getSecondaryUri()
Gets the endpoint for the secondary location for the storage account.
|
URI |
getUri(StorageLocation location)
Gets the URI for a specified
StorageLocation . |
int |
hashCode() |
boolean |
isAbsolute()
Indicates whether this
StorageUri is absolute. |
String |
toString() |
boolean |
validateLocationMode(LocationMode mode)
Validate that a URI exists for the specified
. |
public StorageUri(URI primaryUri)
StorageUri
class using the specified URI.primaryUri
- A java.net.URI
object for the primary URI.public StorageUri(URI primaryUri, URI secondaryUri)
StorageUri
class using the specified primary and secondary URIs.primaryUri
- A java.net.URI
object for the primary URI.secondaryUri
- A java.net.URI
object for the secondary URI.public boolean equals(StorageUri other)
StorageUri
object is equal to the current StorageUri
object.other
- A reference to a StorageUri
object to compare.true
if this object is the same as the other argument; otherwise false
.public URI getPrimaryUri()
java.net.URI
object for the primary URI.public URI getSecondaryUri()
java.net.URI
object for the secondary URI.public URI getUri(StorageLocation location)
StorageLocation
.location
- The StorageLocation
object for which to retrieve a URI.java.net.URI
object for the specified StorageLocation
.public boolean validateLocationMode(LocationMode mode)
LocationMode
.mode
- The LocationMode
to validate.true
if a URI exists for the specified mode; otherwise false
.public boolean isAbsolute()
StorageUri
is absolute.true
if the current StorageUri
is absolute; otherwise false
.public String getQuery()
StorageUri
object.String
which contains the decoded query component of the current StorageUri
,
or null
if the query is undefined.Copyright © 2018. All Rights Reserved.