public abstract class DownloadRequest extends Object implements Serializable
Constructor and Description |
---|
DownloadRequest()
Default constructor.
|
DownloadRequest(String creator,
Collection<String> notificationAddresses,
Boolean sendNotification,
DownloadFormat format,
DownloadType downloadType,
Set<Extension> verbatimExtensions) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getCreator() |
DownloadFormat |
getFormat() |
Set<String> |
getNotificationAddresses() |
String |
getNotificationAddressesAsString()
Returns the notification addresses as single string.
|
Boolean |
getSendNotification() |
DownloadType |
getType() |
Set<Extension> |
getVerbatimExtensions()
Requested verbatimExtensions for this download.
|
int |
hashCode() |
void |
setCreator(String creator) |
void |
setFormat(DownloadFormat format)
This parameter determines the output format of the requested download.
|
void |
setNotificationAddresses(Set<String> notificationAddresses) |
void |
setNotificationAddressesAsString(String notificationAddressesAsString)
Sets the notificationAddresses using a single String value that is split by ','.
|
void |
setSendNotification(boolean sendNotification)
This parameter determines if the requested download must be notified to the created once it's ready.
|
void |
setType(DownloadType type)
Download type: Occurrence or Event.
|
void |
setVerbatimExtensions(Set<Extension> verbatimExtensions) |
String |
toString() |
public DownloadRequest()
public DownloadRequest(String creator, Collection<String> notificationAddresses, Boolean sendNotification, DownloadFormat format, DownloadType downloadType, Set<Extension> verbatimExtensions)
@Nullable public String getCreator()
@Nullable public Set<String> getNotificationAddresses()
@Nullable public String getNotificationAddressesAsString()
public void setCreator(String creator)
public void setNotificationAddresses(Set<String> notificationAddresses)
public void setNotificationAddressesAsString(String notificationAddressesAsString)
@Nullable public Boolean getSendNotification()
public void setSendNotification(boolean sendNotification)
public DownloadFormat getFormat()
public void setFormat(DownloadFormat format)
public DownloadType getType()
public void setType(DownloadType type)
@Nullable public Set<Extension> getVerbatimExtensions()
public void setVerbatimExtensions(Set<Extension> verbatimExtensions)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.