Skip to content

Instantly share code, notes, and snippets.

@normanmaurer
Created September 20, 2011 09:50
Show Gist options
  • Save normanmaurer/1228762 to your computer and use it in GitHub Desktop.
Save normanmaurer/1228762 to your computer and use it in GitHub Desktop.
public AsyncCommandImpl implements AsyncCommand {
public void onCommand(SMTPSession session, SMTPRequest req, SMTPServerResponseCallback callback) {
....
....
smtpClientSession.write(new SMTPRequest(...), new SMTPResponseCallback() {
public void onResponse(SMTPResponse resp) {
callback.onSMTPServerResponse(new SMTPResponse(resp));
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment