public class POP3SessionImpl extends ProtocolSessionImpl implements POP3Session
POP3Session
implementation which use NettyProtocolSession.State
config
APOP_TIMESTAMP, AUTHENTICATION_READY, AUTHENTICATION_USERSET, DELETED_UID_LIST, TRANSACTION, UID_LIST
Constructor and Description |
---|
POP3SessionImpl(Logger logger,
ProtocolTransport transport,
ProtocolConfiguration configData) |
Modifier and Type | Method and Description |
---|---|
int |
getHandlerState()
Returns the current handler state
|
Mailbox |
getUserMailbox()
Returns the mail list contained in the mailbox
|
Response |
newFatalErrorResponse()
This implementation just returns
null . |
Response |
newLineTooLongResponse()
This implementation just returns
null . |
void |
resetState()
This implementation just clears the sessions state.
|
void |
setHandlerState(int handlerState)
Sets the new handler state
|
void |
setUserMailbox(Mailbox mailbox)
Sets a new mailbox content
|
getAttachment, getCharset, getConfiguration, getConnectionState, getLineDelimiter, getLocalAddress, getLogger, getProtocolTransport, getPushedLineHandlerCount, getRemoteAddress, getSessionID, getState, getUser, isStartTLSSupported, isTLSStarted, popLineHandler, pushLineHandler, setAttachment, setUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttachment, getCharset, getConfiguration, getConnectionState, getLineDelimiter, getLocalAddress, getLogger, getPushedLineHandlerCount, getRemoteAddress, getSessionID, getState, getUser, isStartTLSSupported, isTLSStarted, popLineHandler, pushLineHandler, setAttachment, setUser
public POP3SessionImpl(Logger logger, ProtocolTransport transport, ProtocolConfiguration configData)
public int getHandlerState()
POP3Session
getHandlerState
in interface POP3Session
org.apache.james.pop3server.POP3Session#getHandlerState()
public void setHandlerState(int handlerState)
POP3Session
setHandlerState
in interface POP3Session
handlerState
- stateorg.apache.james.pop3server.POP3Session#setHandlerState(int)
public void resetState()
ProtocolSessionImpl
resetState
in interface ProtocolSession
resetState
in class ProtocolSessionImpl
public Mailbox getUserMailbox()
POP3Session
getUserMailbox
in interface POP3Session
org.apache.james.pop3server.POP3Session#getUserMailbox()
public void setUserMailbox(Mailbox mailbox)
POP3Session
setUserMailbox
in interface POP3Session
mailbox
- mailboxorg.apache.james.pop3server.POP3Session#setUserMailbox(Mailbox)
public Response newLineTooLongResponse()
ProtocolSessionImpl
null
. Sub-classes should
overwrite this if needednewLineTooLongResponse
in interface ProtocolSession
newLineTooLongResponse
in class ProtocolSessionImpl
public Response newFatalErrorResponse()
ProtocolSessionImpl
null
. Sub-classes should
overwrite this if needednewFatalErrorResponse
in interface ProtocolSession
newFatalErrorResponse
in class ProtocolSessionImpl
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.