Modifier and Type | Method and Description |
---|---|
static org.apache.james.mailbox.MailboxSession |
ImapSessionUtils.getMailboxSession(ImapSession session) |
static String |
ImapSessionUtils.getUserName(ImapSession imapSession) |
Modifier and Type | Method and Description |
---|---|
MailboxType |
MailboxTyper.getMailboxType(ImapSession session,
org.apache.james.mailbox.model.MailboxPath path)
Returns MailboxType based on mailbox path
|
static IdRange[] |
SearchResUtil.getSavedSequenceSet(ImapSession session)
Return the saved sequence-set which you can refer to with $.
|
void |
ImapLineHandler.onLine(ImapSession session,
byte[] data) |
void |
ImapProcessor.process(ImapMessage message,
ImapProcessor.Responder responder,
ImapSession session)
Performs processing of the command.
|
static void |
SearchResUtil.resetSavedSequenceSet(ImapSession session)
Reset the saved sequence-set
|
static void |
SearchResUtil.saveSequenceSet(ImapSession session,
IdRange[] ranges)
Save the given sequence-set which you can refer to later with $.
|
Modifier and Type | Method and Description |
---|---|
ImapMessage |
ImapDecoder.decode(ImapRequestLineReader request,
ImapSession session) |
ImapMessage |
ImapCommandParser.parse(ImapRequestLineReader request,
String tag,
ImapSession session)
Parses IMAP request.
|
IdRange[] |
ImapRequestLineReader.parseIdRange(ImapSession session)
Reads a "message set" argument, and parses into an IdSet.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ImapMessage |
AbstractImapCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session)
Parses a request into a command message for later processing.
|
ImapMessage |
AbstractImapCommandParser.parse(ImapRequestLineReader request,
String tag,
ImapSession session)
Parses a request into a command message for later processing.
|
Modifier and Type | Method and Description |
---|---|
ImapMessage |
DefaultImapDecoder.decode(ImapRequestLineReader request,
ImapSession session) |
Modifier and Type | Method and Description |
---|---|
protected ImapMessage |
SearchCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
boolean useUids,
ImapSession session) |
protected ImapMessage |
CopyCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
boolean useUids,
ImapSession session) |
protected ImapMessage |
ListCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
boolean useUids,
ImapSession session) |
protected ImapMessage |
FetchCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
boolean useUids,
ImapSession session) |
protected ImapMessage |
StoreCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
boolean useUids,
ImapSession session) |
protected ImapMessage |
ExpungeCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
boolean useUids,
ImapSession session) |
protected ImapMessage |
CreateCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
AuthenticateCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
DeleteCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
AbstractSelectionCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
RenameCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
CheckCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
SubscribeCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
CapabilityCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
NamespaceCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
LoginCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
UnselectCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
UnsubscribeCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
IdleCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
EnableCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
GetACLCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
NoopCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
StartTLSCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
UidCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
StatusCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
LogoutCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
AppendCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
protected ImapMessage |
CompressCommandParser.decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session) |
SearchKey |
SearchCommandParser.decode(ImapSession session,
ImapRequestLineReader request) |
protected SearchKey |
SearchCommandParser.searchKey(ImapSession session,
ImapRequestLineReader request,
Charset charset,
boolean isFirstToken)
Parses the request argument into a valid search term.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ContinuationResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
ExpungeResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
RecentResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
ExistsResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
FetchResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
SearchResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
EnableResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
CapabilityResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
StatusResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
AuthenticateResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
ListResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
MailboxStatusResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
LSubResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
FlagsResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
ACLResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
VanishedResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
ESearchResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
NamespaceResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
protected void |
XListResponseEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session) |
void |
ImapEncoder.encode(ImapMessage message,
ImapResponseComposer composer,
ImapSession session)
Writes response.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractChainedImapEncoder.chainEncode(ImapMessage message,
ImapResponseComposer composer,
ImapSession session)
Call next Encoder in the chain
|
protected abstract void |
AbstractChainedImapEncoder.doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session)
Processes an acceptable message.
|
void |
EndImapEncoder.encode(ImapMessage message,
ImapResponseComposer composer,
ImapSession session) |
void |
AbstractChainedImapEncoder.encode(ImapMessage message,
ImapResponseComposer composer,
ImapSession session)
Encode the
ImapMessage if AbstractChainedImapEncoder.isAcceptable(ImapMessage)
return true, if not pass it to the next encoder in the chain |
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractImapRequestHandler.doProcessRequest(ImapRequestLineReader request,
ImapResponseComposer response,
ImapSession session) |
protected boolean |
AbstractImapRequestHandler.isSelectedMailboxDeleted(ImapSession session) |
Constructor and Description |
---|
ResponseEncoder(ImapEncoder encoder,
ImapResponseComposer composer,
ImapSession session) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractMailboxProcessor.addFlagsResponses(ImapSession session,
SelectedMailbox selected,
ImapProcessor.Responder responder,
boolean useUid,
org.apache.james.mailbox.model.MessageRange messageSet,
org.apache.james.mailbox.MessageManager mailbox,
org.apache.james.mailbox.MailboxSession mailboxSession) |
org.apache.james.mailbox.model.MailboxPath |
AbstractMailboxProcessor.buildFullPath(ImapSession session,
String mailboxName) |
protected void |
AbstractMailboxProcessor.condstoreEnablingCommand(ImapSession session,
ImapProcessor.Responder responder,
org.apache.james.mailbox.MessageManager.MetaData metaData,
boolean sendHighestModSeq) |
protected void |
AbstractAuthProcessor.doAuth(String userid,
String passwd,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder,
HumanReadableText failed) |
protected void |
AuthenticateProcessor.doPlainAuth(String initialClientResponse,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder)
Parse the initialClientResponse and do a PLAIN AUTH with it
|
protected void |
AppendProcessor.doProcess(AppendRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
AuthenticateProcessor.doProcess(AuthenticateRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
CapabilityProcessor.doProcess(CapabilityRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
CheckProcessor.doProcess(CheckRequest message,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
CloseProcessor.doProcess(CloseRequest message,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
CompressProcessor.doProcess(CompressRequest request,
ImapProcessor.Responder responder,
ImapSession session) |
protected void |
CopyProcessor.doProcess(CopyRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
CreateProcessor.doProcess(CreateRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
DeleteProcessor.doProcess(DeleteRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
EnableProcessor.doProcess(EnableRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
ExpungeProcessor.doProcess(ExpungeRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
GetACLProcessor.doProcess(GetACLRequest message,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
IdleProcessor.doProcess(IdleRequest message,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
ListProcessor.doProcess(ListRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
XListProcessor.doProcess(ListRequest message,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
LoginProcessor.doProcess(LoginRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
LogoutProcessor.doProcess(LogoutRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
AbstractMailboxProcessor.doProcess(M acceptableMessage,
ImapProcessor.Responder responder,
ImapSession session) |
protected void |
AbstractSubscriptionProcessor.doProcess(M message,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected abstract void |
AbstractMailboxProcessor.doProcess(M message,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
NamespaceProcessor.doProcess(NamespaceRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
NoopProcessor.doProcess(NoopRequest message,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
RenameProcessor.doProcess(RenameRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
SearchProcessor.doProcess(SearchRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
StartTLSProcessor.doProcess(StartTLSRequest request,
ImapProcessor.Responder responder,
ImapSession session) |
protected void |
StatusProcessor.doProcess(StatusRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
StoreProcessor.doProcess(StoreRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
ListProcessor.doProcess(String referenceName,
String mailboxName,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder,
MailboxTyper mailboxTyper)
(from rfc3501)
The LIST command returns a subset of names from the complete set of all names available to the client. |
protected void |
SystemMessageProcessor.doProcess(SystemMessage message,
ImapProcessor.Responder responder,
ImapSession session) |
protected void |
UnselectProcessor.doProcess(UnselectRequest message,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
LSubProcessor.doProcessRequest(LsubRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected abstract void |
AbstractSubscriptionProcessor.doProcessRequest(M message,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder)
Process the request
|
protected void |
SubscribeProcessor.doProcessRequest(SubscribeRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
UnsubscribeProcessor.doProcessRequest(UnsubscribeRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
void |
PermitEnableCapabilityProcessor.enable(ImapMessage message,
ImapProcessor.Responder responder,
ImapSession session,
String capability)
Callback which is used when a ENABLED command was used to enable on of the CAPABILITIES which is managed by this implementation
|
static Set<String> |
EnableProcessor.enable(ImapRequest request,
ImapProcessor.Responder responder,
ImapSession session,
Iterator<String> caps) |
static Set<String> |
EnableProcessor.getEnabledCapabilities(ImapSession session)
Return all enabled
CAPABILITIES for this ImapSession |
List<String> |
StartTLSProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
GetACLProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
CapabilityProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
NamespaceProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
LoginProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
CapabilityImplementingProcessor.getImplementedCapabilities(ImapSession session)
Return a list of all Capabilities that are implemented by the Processor
|
List<String> |
ExpungeProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
AuthenticateProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
EnableProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
IdleProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
CompressProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
XListProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
UnselectProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
SearchProcessor.getImplementedCapabilities(ImapSession session) |
List<String> |
PermitEnableCapabilityProcessor.getPermitEnableCapabilities(ImapSession session)
Return the capabilities which supports to get ENABLED.
|
protected org.apache.james.mailbox.MessageManager |
AbstractMailboxProcessor.getSelectedMailbox(ImapSession session) |
static Set<String> |
CapabilityProcessor.getSupportedCapabilities(ImapSession session)
Return all supported
CAPABILITIES for this ImapSession |
protected void |
AbstractMailboxProcessor.process(M message,
ImapProcessor.Responder responder,
ImapSession session) |
protected void |
AbstractMailboxProcessor.unsolicitedResponses(ImapSession session,
ImapProcessor.Responder responder,
boolean useUids) |
protected void |
AbstractMailboxProcessor.unsolicitedResponses(ImapSession session,
ImapProcessor.Responder responder,
boolean omitExpunged,
boolean useUid)
Sends any unsolicited responses to the client, such as EXISTS and FLAGS
responses when the selected mailbox is modified by another user.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ImapResponseMessageProcessor.doProcess(ImapResponseMessage acceptableMessage,
ImapProcessor.Responder responder,
ImapSession session) |
protected abstract void |
AbstractChainedProcessor.doProcess(M acceptableMessage,
ImapProcessor.Responder responder,
ImapSession session)
Processes an acceptable message.
|
void |
UnknownRequestProcessor.process(ImapMessage message,
ImapProcessor.Responder responder,
ImapSession session) |
void |
AbstractChainedProcessor.process(ImapMessage message,
ImapProcessor.Responder responder,
ImapSession session) |
ImapResponseMessage |
UnknownRequestProcessor.process(ImapMessage message,
ImapSession session) |
Constructor and Description |
---|
SelectedMailboxImpl(org.apache.james.mailbox.MailboxManager mailboxManager,
ImapSession session,
org.apache.james.mailbox.model.MailboxPath path) |
Modifier and Type | Method and Description |
---|---|
FetchResponse |
FetchResponseBuilder.build(FetchData fetch,
org.apache.james.mailbox.model.MessageResult result,
org.apache.james.mailbox.MessageManager mailbox,
ImapSession session,
boolean useUids) |
protected void |
FetchProcessor.doProcess(FetchRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
protected void |
FetchProcessor.processMessageRanges(ImapSession session,
org.apache.james.mailbox.MessageManager mailbox,
List<org.apache.james.mailbox.model.MessageRange> ranges,
FetchData fetch,
boolean useUids,
org.apache.james.mailbox.MailboxSession mailboxSession,
ImapProcessor.Responder responder)
Process the given message ranges by fetch them and pass them to the
ImapProcessor.Responder |
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.