public class PathLinkMetadata extends LinkMetadata
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
path |
expires, url, visibility
Constructor and Description |
---|
PathLinkMetadata(java.lang.String url,
Visibility visibility,
java.lang.String path)
Metadata for a path-based shared link.
|
PathLinkMetadata(java.lang.String url,
Visibility visibility,
java.lang.String path,
java.util.Date expires)
Metadata for a path-based shared link.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getExpires()
Expiration time, if set.
|
java.lang.String |
getPath()
Path in user's Dropbox.
|
java.lang.String |
getUrl()
URL of the shared link.
|
Visibility |
getVisibility()
Who can access the link.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public PathLinkMetadata(java.lang.String url, Visibility visibility, java.lang.String path, java.util.Date expires)
url
- URL of the shared link. Must not be null
.visibility
- Who can access the link. Must not be null
.path
- Path in user's Dropbox. Must not be null
.expires
- Expiration time, if set. By default the link won't
expire.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public PathLinkMetadata(java.lang.String url, Visibility visibility, java.lang.String path)
The default values for unset fields will be used.
url
- URL of the shared link. Must not be null
.visibility
- Who can access the link. Must not be null
.path
- Path in user's Dropbox. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getUrl()
getUrl
in class LinkMetadata
null
.public Visibility getVisibility()
getVisibility
in class LinkMetadata
null
.public java.lang.String getPath()
null
.public java.util.Date getExpires()
getExpires
in class LinkMetadata
null
if not present.public int hashCode()
hashCode
in class LinkMetadata
public boolean equals(java.lang.Object obj)
equals
in class LinkMetadata
public java.lang.String toString()
toString
in class LinkMetadata
public java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class LinkMetadata