public class OSSURI
extends java.lang.Object
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]
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
|
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)
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