public class OSSURI
extends java.lang.Object
Note: Path-style access is deprecated and not supported by this implementation.
Constructor and Description |
---|
OSSURI(java.lang.String location)
Creates a new OSSURI based on the bucket and key parsed from the location The location in
string form has the syntax as below, which refers to RFC2396: [scheme:][//bucket][object
key][#fragment] [scheme:][//bucket][object key][?query][#fragment]
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
bucket()
Return OSS bucket name.
|
java.lang.String |
key()
Return OSS object key name.
|
java.lang.String |
location()
Return original, unmodified OSS URI location.
|
java.lang.String |
toString() |
public OSSURI(java.lang.String location)
It specifies precisely which characters are permitted in the various components of a URI reference in Aliyun OSS documentation as below: Bucket: https://help.aliyun.com/document_detail/257087.html Object: https://help.aliyun.com/document_detail/273129.html Scheme: https or oss
Supported access styles are https and oss://... URIs.
location
- fully qualified URI.public java.lang.String bucket()
public java.lang.String key()
public java.lang.String location()
public java.lang.String toString()
toString
in class java.lang.Object