Interface ServerUserReplyHandler
- All Superinterfaces:
ServerReplyHandler
Handler for USER command response.
On success, the handler receives a ClientPasswordState to
continue with the PASS command. On failure, the handler returns to
the AUTHORIZATION state.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRejected(ClientAuthorizationState auth, String message) Called when the server rejects the username (-ERR).voidCalled when the server accepts the username (+OK).Methods inherited from interface org.bluezoo.gumdrop.pop3.client.handler.ServerReplyHandler
handleServiceClosing
-
Method Details
-
handleUserAccepted
Called when the server accepts the username (+OK).The handler should now send the password using
ClientPasswordState.pass(java.lang.String, org.bluezoo.gumdrop.pop3.client.handler.ServerPassReplyHandler).- Parameters:
pass- operations to send the password
-
handleRejected
Called when the server rejects the username (-ERR).- Parameters:
auth- operations to retry or try a different approachmessage- the server's error message
-