public abstract class Command<T> extends java.lang.Object implements ICommand<T>
Modifier and Type | Field and Description |
---|---|
protected T |
data |
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
protected abstract CommandArgument |
buildCommand() |
java.lang.String |
execute(org.apache.mina.core.session.IoSession session,
ITagProducer tp,
java.util.concurrent.Semaphore lock) |
protected static java.lang.String |
fromUtf7(java.lang.String mailbox) |
T |
getReceivedData() |
protected boolean |
isOk(java.util.List<IMAPResponse> rs) |
abstract void |
responseReceived(java.util.List<IMAPResponse> rs) |
java.lang.String |
taggedResponseReceived(java.util.List<IMAPResponse> rs) |
protected static java.lang.String |
toUtf7(java.lang.String mailbox) |
protected static java.lang.String |
toUtf7(java.lang.String mailbox,
boolean quoted) |
protected org.slf4j.Logger logger
protected T data
public java.lang.String execute(org.apache.mina.core.session.IoSession session, ITagProducer tp, java.util.concurrent.Semaphore lock)
public java.lang.String taggedResponseReceived(java.util.List<IMAPResponse> rs)
taggedResponseReceived
in interface ICommand<T>
public abstract void responseReceived(java.util.List<IMAPResponse> rs)
public T getReceivedData()
getReceivedData
in interface ICommand<T>
protected abstract CommandArgument buildCommand()
protected static java.lang.String toUtf7(java.lang.String mailbox)
protected static java.lang.String toUtf7(java.lang.String mailbox, boolean quoted)
protected boolean isOk(java.util.List<IMAPResponse> rs)
protected static java.lang.String fromUtf7(java.lang.String mailbox)
Copyright © 2021. All Rights Reserved.