public final class ClientSupport
extends java.lang.Object
Constructor and Description |
---|
ClientSupport(ITagProducer tp,
ICallbackFactory icf) |
Modifier and Type | Method and Description |
---|---|
int |
append(java.lang.String mailbox,
java.io.InputStream in,
FlagsList fl) |
int |
append(java.lang.String mailbox,
java.io.InputStream in,
FlagsList fl,
java.util.Date delivery) |
java.util.Set<java.lang.String> |
capabilities() |
boolean |
create(java.lang.String mailbox) |
CreateMailboxResult |
createMailbox(java.lang.String mailbox,
java.lang.String partition) |
boolean |
deleteAcl(java.lang.String mailbox,
java.lang.String consumer) |
CreateMailboxResult |
deleteMailbox(java.lang.String mailbox) |
boolean |
enable(java.lang.String capability,
java.lang.String... otherCapabilities) |
void |
expunge() |
long |
getFirstUid() |
int |
getUidnext(java.lang.String mailbox) |
SyncStatus |
getUidValidity(java.lang.String mailbox) |
int |
getUnseen(java.lang.String mailbox) |
java.util.Map<java.lang.String,Acl> |
listAcl(java.lang.String mailbox) |
ListResult |
listAll() |
ListResult |
listMailbox(java.lang.String mailbox) |
ListResult |
listSubscribed() |
boolean |
login(java.lang.String login,
java.lang.String password,
org.apache.mina.transport.socket.SocketConnector connector,
java.net.SocketAddress address,
java.lang.Boolean activateTLS) |
void |
logout() |
NameSpaceInfo |
namespace() |
boolean |
noop() |
QuotaInfo |
quota(java.lang.String mailbox) |
boolean |
rename(java.lang.String mailbox,
java.lang.String newMailbox) |
boolean |
renameMailbox(java.lang.String mailbox,
java.lang.String newMailbox,
java.lang.String partition) |
boolean |
select(java.lang.String mailbox) |
boolean |
setAcl(java.lang.String mailbox,
java.lang.String consumer,
Acl acl)
Sets an IMAP Acl on a mailbox
|
boolean |
setAnnotation(java.lang.String annotation) |
boolean |
setQuota(java.lang.String mailbox,
int quota) |
boolean |
subscribe(java.lang.String mailbox) |
MailboxChanges |
sync(java.lang.String mailbox,
SyncData sd) |
TaggedResult |
tagged(java.lang.String imapCommand) |
void |
throwError(IMAPException cause) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
uidCopy(java.util.Collection<java.lang.Integer> uids,
java.lang.String destMailbox) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
uidCopy(java.lang.String uidSet,
java.lang.String destMailbox) |
void |
uidExpunge(java.util.Collection<java.lang.Integer> uids) |
java.util.Collection<MimeTree> |
uidFetchBodyStructure(java.util.Collection<java.lang.Integer> uid) |
java.util.Collection<Envelope> |
uidFetchEnvelope(java.util.Collection<java.lang.Integer> uids) |
java.util.Collection<FlagsList> |
uidFetchFlags(java.util.Collection<java.lang.Integer> uids) |
java.util.Collection<FlagsList> |
uidFetchFlags(java.lang.String uidSet) |
java.util.Collection<IMAPHeaders> |
uidFetchHeaders(java.util.Collection<java.lang.Integer> uids,
java.lang.String[] headers) |
InternalDate[] |
uidFetchInternalDate(java.util.Collection<java.lang.Integer> uids) |
InternalDate[] |
uidFetchInternalDate(java.lang.String uidSet) |
IMAPByteSource |
uidFetchMessage(java.lang.Integer uid) |
IMAPByteSource |
uidFetchPart(java.lang.Integer uid,
java.lang.String address) |
java.util.Collection<Summary> |
uidFetchSummary(java.lang.String uidSet) |
java.util.Collection<java.lang.Integer> |
uidSearch(SearchQuery sq) |
boolean |
uidStore(java.util.Collection<java.lang.Integer> uids,
FlagsList fl,
boolean set) |
java.util.List<MailThread> |
uidThreads() |
boolean |
unsubscribe(java.lang.String mailbox) |
boolean |
xfer(java.lang.String boxName,
java.lang.String serverName,
java.lang.String partition) |
public ClientSupport(ITagProducer tp, ICallbackFactory icf)
public boolean login(java.lang.String login, java.lang.String password, org.apache.mina.transport.socket.SocketConnector connector, java.net.SocketAddress address, java.lang.Boolean activateTLS)
public void logout()
public boolean select(java.lang.String mailbox)
public ListResult listSubscribed()
public ListResult listAll()
public ListResult listMailbox(java.lang.String mailbox)
public java.util.Set<java.lang.String> capabilities()
public boolean noop()
public boolean create(java.lang.String mailbox)
public CreateMailboxResult createMailbox(java.lang.String mailbox, java.lang.String partition)
public CreateMailboxResult deleteMailbox(java.lang.String mailbox)
public boolean rename(java.lang.String mailbox, java.lang.String newMailbox)
public boolean subscribe(java.lang.String mailbox)
public boolean unsubscribe(java.lang.String mailbox)
public int append(java.lang.String mailbox, java.io.InputStream in, FlagsList fl)
public int append(java.lang.String mailbox, java.io.InputStream in, FlagsList fl, java.util.Date delivery)
public void expunge()
public void uidExpunge(java.util.Collection<java.lang.Integer> uids)
public QuotaInfo quota(java.lang.String mailbox)
public boolean setQuota(java.lang.String mailbox, int quota)
public IMAPByteSource uidFetchMessage(java.lang.Integer uid)
public java.util.Collection<java.lang.Integer> uidSearch(SearchQuery sq)
public java.util.Collection<MimeTree> uidFetchBodyStructure(java.util.Collection<java.lang.Integer> uid)
public java.util.Collection<IMAPHeaders> uidFetchHeaders(java.util.Collection<java.lang.Integer> uids, java.lang.String[] headers)
public java.util.Collection<Envelope> uidFetchEnvelope(java.util.Collection<java.lang.Integer> uids)
public java.util.Collection<FlagsList> uidFetchFlags(java.util.Collection<java.lang.Integer> uids)
public java.util.Collection<FlagsList> uidFetchFlags(java.lang.String uidSet)
public InternalDate[] uidFetchInternalDate(java.util.Collection<java.lang.Integer> uids)
public InternalDate[] uidFetchInternalDate(java.lang.String uidSet)
public java.util.Map<java.lang.Integer,java.lang.Integer> uidCopy(java.util.Collection<java.lang.Integer> uids, java.lang.String destMailbox)
public java.util.Map<java.lang.Integer,java.lang.Integer> uidCopy(java.lang.String uidSet, java.lang.String destMailbox)
public boolean uidStore(java.util.Collection<java.lang.Integer> uids, FlagsList fl, boolean set)
public IMAPByteSource uidFetchPart(java.lang.Integer uid, java.lang.String address)
public java.util.List<MailThread> uidThreads()
public NameSpaceInfo namespace()
public boolean setAcl(java.lang.String mailbox, java.lang.String consumer, Acl acl)
mailbox
- user/toto@willow.vmwconsumer
- admin0acl
- allpublic boolean deleteAcl(java.lang.String mailbox, java.lang.String consumer)
public java.util.Map<java.lang.String,Acl> listAcl(java.lang.String mailbox)
public boolean renameMailbox(java.lang.String mailbox, java.lang.String newMailbox, java.lang.String partition)
public int getUnseen(java.lang.String mailbox)
public int getUidnext(java.lang.String mailbox)
public boolean xfer(java.lang.String boxName, java.lang.String serverName, java.lang.String partition)
public java.util.Collection<Summary> uidFetchSummary(java.lang.String uidSet)
public boolean setAnnotation(java.lang.String annotation)
public TaggedResult tagged(java.lang.String imapCommand)
public boolean enable(java.lang.String capability, java.lang.String... otherCapabilities)
public SyncStatus getUidValidity(java.lang.String mailbox)
public MailboxChanges sync(java.lang.String mailbox, SyncData sd)
public long getFirstUid()
public void throwError(IMAPException cause)
cause
- Copyright © 2021. All Rights Reserved.