public class PathLinkMetadata extends LinkMetadata
Modifier and Type | Field and Description |
---|---|
protected String |
path |
expires, url, visibility
Constructor and Description |
---|
PathLinkMetadata(String url,
Visibility visibility,
String path)
Metadata for a path-based shared link.
|
PathLinkMetadata(String url,
Visibility visibility,
String path,
Date expires)
Metadata for a path-based shared link.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Date |
getExpires()
Expiration time, if set.
|
String |
getPath()
Path in user's Dropbox.
|
String |
getUrl()
URL of the shared link.
|
Visibility |
getVisibility()
Who can access the link.
|
int |
hashCode() |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final String path
public PathLinkMetadata(String url, Visibility visibility, String path, 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.IllegalArgumentException
- If any argument does not meet its
preconditions.public PathLinkMetadata(String url, Visibility visibility, 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
.IllegalArgumentException
- If any argument does not meet its
preconditions.public String getUrl()
getUrl
in class LinkMetadata
null
.public Visibility getVisibility()
getVisibility
in class LinkMetadata
null
.public String getPath()
null
.public Date getExpires()
getExpires
in class LinkMetadata
null
if not present.public int hashCode()
hashCode
in class LinkMetadata
public boolean equals(Object obj)
equals
in class LinkMetadata
public String toString()
toString
in class LinkMetadata
public String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class LinkMetadata