public class MaileonBlacklistsService extends AbstractMaileonService
MaileonBlacklistsService
client sends operational requests to the BlacklistsResource
.AbstractMaileonService.QueryParameters
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE |
MAILEON_XML_TYPE
Constructor and Description |
---|
MaileonBlacklistsService(MaileonConfiguration config)
Constructs a
MaileonBlacklistsService . |
Modifier and Type | Method and Description |
---|---|
void |
addBlacklistEntries(long id,
java.lang.String importName,
java.util.List<java.lang.String> entries)
Adds entries to an existing blacklist.
|
Blacklist |
getBlacklist(long id)
Gives a account-specific blacklist according to an id.
|
java.util.List<Blacklist> |
getBlacklists()
Gives a list of all defined blacklists in the account.
|
delete, delete, delete, encodePath, get, get, get, isCompressionEnabled, isDebug, isRequestCompressionEnabled, post, post, post, put, put, put, setCompressionEnabled, setDebug, setRequestCompressionEnabled
public static final java.lang.String SERVICE
public MaileonBlacklistsService(MaileonConfiguration config)
MaileonBlacklistsService
.config
- Maileon API-Configuration.public java.util.List<Blacklist> getBlacklists() throws MaileonException
Blacklist
MaileonException
public Blacklist getBlacklist(long id) throws MaileonException
id
- of the required blacklistBlacklist
specified by the given idMaileonException
public void addBlacklistEntries(long id, java.lang.String importName, java.util.List<java.lang.String> entries) throws MaileonException
id
- of the blacklist to changeimportName
- name-identifier displayed in the user interface, can be null for the default nameentries
- list of entries to add to the underlying blacklistMaileonException
Copyright © 2018. All Rights Reserved.