Modifier and Type | Interface and Description |
---|---|
interface |
StartTlsResponse
An special sub-type of
Response which makes it possible to detect a response to a STARTTLS request. |
interface |
StreamResponse
Special
Response sub-type which allows to write an InputStream to the remote peer |
Modifier and Type | Class and Description |
---|---|
class |
AbstractResponse
Abstract base implementation of
Response |
Modifier and Type | Field and Description |
---|---|
static Response |
Response.DISCONNECT
Special
Response implementation which will just disconnect the client |
Modifier and Type | Method and Description |
---|---|
Response |
AbstractResponse.immutable()
Return a immutable instance of this
AbstractResponse |
Response |
ProtocolSession.newFatalErrorResponse()
Define a response object to be used as reply during a fatal error.
|
Response |
ProtocolSessionImpl.newFatalErrorResponse()
This implementation just returns
null . |
Response |
ProtocolSession.newLineTooLongResponse()
Define a response object to be used as reply for a too long input line
|
Response |
ProtocolSessionImpl.newLineTooLongResponse()
This implementation just returns
null . |
Modifier and Type | Method and Description |
---|---|
protected static byte[] |
AbstractProtocolTransport.toBytes(Response response)
Take the
Response and encode it to a byte array |
void |
ProtocolTransport.writeResponse(Response response,
ProtocolSession session)
Write the
Response to the ProtocolTransport which will forward it to the connected
peer |
void |
AbstractProtocolTransport.writeResponse(Response response,
ProtocolSession session) |
protected void |
AbstractProtocolTransport.writeResponseToClient(Response response,
ProtocolSession session)
Write the
Response to the client |
Modifier and Type | Interface and Description |
---|---|
interface |
FutureResponse
An special
Response which allows to populate it in an async fashion. |
Modifier and Type | Class and Description |
---|---|
class |
FutureResponseImpl
FutureResponse implementation which wraps a AbstractResponse implementation |
class |
FutureStartTlsResponse
Special
FutureResponse which will get notified once a StartTlsResponse is ready |
class |
FutureStreamResponseImpl
Special
FutureResponse which wraps a StreamResponse and so provide an async way to get notified about ready responses |
Modifier and Type | Field and Description |
---|---|
protected Response |
FutureResponseImpl.response |
Modifier and Type | Method and Description |
---|---|
void |
FutureStreamResponseImpl.setResponse(Response response)
Set the
StreamResponse to wrap. |
void |
FutureResponseImpl.setResponse(Response response)
Set the
Response which will be used to notify the registered
ResponseListener '. |
void |
FutureStartTlsResponse.setResponse(Response response)
Set the
StartTlsResponse to wrap. |
Modifier and Type | Interface and Description |
---|---|
interface |
ProtocolHandlerResultHandler<R extends Response,S extends ProtocolSession>
An special
ProtocolHandler which allows to intercept returned Response 's and act on them. |
Modifier and Type | Method and Description |
---|---|
protected Response |
CommandDispatcher.dispatchCommandHandlers(Session session,
Request request)
Dispatch the
CommandHandler 's for the given Request and return a Response or null if non should get written
back to the client |
Response |
CommandHandler.onCommand(Session session,
Request request)
Handle the command
|
Response |
ConnectHandler.onConnect(Session session)
Handle connection and disconnect if true is returned
|
Response |
MultiLineHandler.onLine(S session,
ByteBuffer line) |
Response |
CommandDispatcher.onLine(Session session,
ByteBuffer line) |
Response |
LineHandler.onLine(Session session,
ByteBuffer buffer)
Processing the give line.
|
protected abstract Response |
MultiLineHandler.onLines(S session,
Collection<ByteBuffer> lines)
Handle the buffered lines
|
Response |
CommandHandlerResultLogger.onResponse(ProtocolSession session,
Response response,
long executionTime,
ProtocolHandler handler) |
Response |
ProtocolHandlerResultHandler.onResponse(ProtocolSession session,
R response,
long executionTime,
ProtocolHandler handler)
Get called when a
Response was returned from the ProtocolHandler |
Modifier and Type | Method and Description |
---|---|
protected void |
CommandHandlerResultLogger.log(ProtocolSession session,
Response response,
String logmessage)
Log the given logmessage
|
Response |
CommandHandlerResultLogger.onResponse(ProtocolSession session,
Response response,
long executionTime,
ProtocolHandler handler) |
Modifier and Type | Class and Description |
---|---|
class |
LMTPMultiResponse
After the message message is submitted via the 'CRLF.CLRF' sequence the LMTP Server will return a response line for every recipient.
|
Modifier and Type | Method and Description |
---|---|
void |
LMTPMultiResponse.addResponse(Response response) |
Constructor and Description |
---|
LMTPMultiResponse(Response response) |
Modifier and Type | Method and Description |
---|---|
protected Response |
DataLineMessageHookHandler.processExtensions(SMTPSession session,
MailEnvelopeImpl mail) |
Modifier and Type | Class and Description |
---|---|
class |
POP3Response
Contains an POP3 result
|
class |
POP3StartTlsResponse
Special sub-type of
POP3Response which will trigger the start of TLS after the response was written to the client |
class |
POP3StreamResponse
StreamResponse implementation which allows to write back big-data to the client for POP3 |
Modifier and Type | Field and Description |
---|---|
static Response |
POP3Response.ERR
POP3Response.ERR_RESPONSE with no description |
static Response |
POP3Response.OK
POP3Response.OK_RESPONSE with no description |
Modifier and Type | Method and Description |
---|---|
Response |
POP3StreamResponse.immutable()
|
Response |
POP3StartTlsResponse.immutable()
Return an immutable
StartTlsResponse . |
Response |
POP3SessionImpl.newFatalErrorResponse() |
Response |
POP3SessionImpl.newLineTooLongResponse() |
Modifier and Type | Field and Description |
---|---|
protected static Response |
AbstractPassCmdHandler.AUTH_FAILED |
Modifier and Type | Method and Description |
---|---|
protected Response |
AbstractPassCmdHandler.doAuth(POP3Session session,
String user,
String pass)
Authenticate a user and return the
Response |
Response |
ListCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a LIST command.
|
Response |
UserCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a USER command.
|
Response |
UnknownCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of an unrecognized command.
|
Response |
NoopCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a NOOP command.
|
Response |
AbstractApopCmdHandler.onCommand(POP3Session session,
Request request) |
Response |
CapaCmdHandler.onCommand(POP3Session session,
Request request) |
Response |
DeleCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a DELE command.
|
Response |
RsetCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a RSET command.
|
Response |
UidlCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a UIDL command.
|
Response |
TopCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a TOP command.
|
Response |
RetrCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a RETR command.
|
Response |
StlsCmdHandler.onCommand(POP3Session session,
Request request) |
Response |
StatCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a STAT command.
|
Response |
QuitCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a QUIT command.
|
Response |
AbstractPassCmdHandler.onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a PASS command.
|
Response |
WelcomeMessageHandler.onConnect(POP3Session session) |
Modifier and Type | Class and Description |
---|---|
class |
SMTPResponse
Contains an SMTP result
|
class |
SMTPStartTlsResponse
This
SMTPResponse should only be used once you want to start tls after the SMTPResponse was written to the client |
Modifier and Type | Method and Description |
---|---|
Response |
SMTPStartTlsResponse.immutable()
Returns an immutable
StartTlsResponse |
Response |
SMTPSessionImpl.newFatalErrorResponse() |
Response |
SMTPSessionImpl.newLineTooLongResponse() |
Modifier and Type | Method and Description |
---|---|
protected Response |
HeloCmdHandler.doCoreCmd(SMTPSession session,
String command,
String parameters) |
protected Response |
RcptCmdHandler.doCoreCmd(SMTPSession session,
String command,
String parameters)
Handler method called upon receipt of a RCPT command.
|
protected Response |
UnknownCmdHandler.doCoreCmd(SMTPSession session,
String command,
String parameters) |
protected abstract Response |
AbstractHookableCmdHandler.doCoreCmd(SMTPSession session,
String command,
String parameters)
Execute the core commandHandling.
|
protected Response |
MailCmdHandler.doCoreCmd(SMTPSession session,
String command,
String parameters) |
protected Response |
QuitCmdHandler.doCoreCmd(SMTPSession session,
String command,
String parameters) |
protected Response |
DataCmdHandler.doDATA(SMTPSession session,
String argument)
Handler method called upon receipt of a DATA command.
|
protected Response |
DataCmdHandler.doDATAFilter(SMTPSession session,
String argument) |
protected Response |
HeloCmdHandler.doFilterChecks(SMTPSession session,
String command,
String parameters) |
protected Response |
RcptCmdHandler.doFilterChecks(SMTPSession session,
String command,
String argument) |
protected Response |
UnknownCmdHandler.doFilterChecks(SMTPSession session,
String command,
String parameters) |
protected abstract Response |
AbstractHookableCmdHandler.doFilterChecks(SMTPSession session,
String command,
String parameters)
Execute Syntax checks and return a SMTPResponse if a syntax error was
detected, otherwise null.
|
protected Response |
MailCmdHandler.doFilterChecks(SMTPSession session,
String command,
String parameters) |
protected Response |
QuitCmdHandler.doFilterChecks(SMTPSession session,
String command,
String parameters) |
protected Response |
SeparatingDataLineFilter.onBodyLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Gets called for each received line after the CRLF sequence was received.
|
Response |
NoopCmdHandler.onCommand(SMTPSession session,
Request request)
Handler method called upon receipt of a NOOP command.
|
Response |
AbstractHookableCmdHandler.onCommand(SMTPSession session,
Request request)
Handle command processing
|
Response |
HelpCmdHandler.onCommand(SMTPSession session,
Request request)
handles HELP command
|
Response |
VrfyCmdHandler.onCommand(SMTPSession session,
Request request)
Handler method called upon receipt of a VRFY command.
|
Response |
DataCmdHandler.onCommand(SMTPSession session,
Request request)
process DATA command
|
Response |
RsetCmdHandler.onCommand(SMTPSession session,
Request request)
handles RSET command
|
Response |
MailCmdHandler.onCommand(SMTPSession session,
Request request) |
Response |
ExpnCmdHandler.onCommand(SMTPSession session,
Request request)
Handler method called upon receipt of a EXPN command.
|
Response |
WelcomeMessageHandler.onConnect(SMTPSession session) |
protected Response |
AbstractAddHeadersFilter.onHeadersLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next) |
protected Response |
SeparatingDataLineFilter.onHeadersLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Gets called for each received line until the CRLF sequence was received.
|
Response |
DataCmdHandler.DataLineFilterWrapper.onLine(SMTPSession session,
ByteBuffer line) |
Response |
DataLineFilter.onLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Handle line processing
|
Response |
DataLineMessageHookHandler.onLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next) |
Response |
SeparatingDataLineFilter.onLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next) |
protected Response |
AbstractAddHeadersFilter.onSeparatorLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next) |
protected Response |
SeparatingDataLineFilter.onSeparatorLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Gets called when the separating line is received.
|
protected Response |
DataLineMessageHookHandler.processExtensions(SMTPSession session,
MailEnvelopeImpl mail) |
Response |
AbstractAddHeadersFilter.Header.transferTo(SMTPSession session,
LineHandler<SMTPSession> handler)
Transfer the content of the
AbstractAddHeadersFilter.Header to the given LineHandler . |
Modifier and Type | Method and Description |
---|---|
protected Response |
AuthCmdHandler.calcDefaultSMTPResponse(HookResult result)
Calculate the SMTPResponse for the given result
|
protected Response |
AuthCmdHandler.doAuthTest(SMTPSession session,
String user,
String pass,
String authType) |
protected Response |
EhloCmdHandler.doCoreCmd(SMTPSession session,
String command,
String parameters) |
protected Response |
EhloCmdHandler.doFilterChecks(SMTPSession session,
String command,
String parameters) |
Response |
AuthCmdHandler.onCommand(SMTPSession session,
Request request)
handles AUTH command
|
Response |
StartTlsCmdHandler.onCommand(SMTPSession session,
Request request)
Handler method called upon receipt of a STARTTLS command.
|
Response |
MailSizeEsmtpExtension.onLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next) |
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.