org.apache.james.protocols.smtp
Interface SMTPSession

All Superinterfaces:
ProtocolSession
All Known Implementing Classes:
SMTPSessionImpl

public interface SMTPSession
extends ProtocolSession

All the handlers access this interface to communicate with SMTPHandler object


Field Summary
static String CURRENT_HELO_MODE
          HELO or EHLO
static String CURRENT_HELO_NAME
           
static String RCPT_LIST
          The message recipients
static String SENDER
          Sender's email address
 
Method Summary
 String getHelloName()
          Returns the service wide hello name
 long getMaxMessageSize()
          Returns the service wide maximum message size in bytes.
 int getPushedLineHandlerCount()
          Return the size of the pushed LineHandler
 int getRcptCount()
          Returns the recipient count
 String getSMTPGreeting()
          Return the SMTPGreeting which should used.
 boolean isAuthSupported()
          Returns whether Authentication is required or not
 boolean isRelayingAllowed()
          Returns whether Relaying is allowed or not
 void popLineHandler()
          Pop the last command handler
 void pushLineHandler(LineHandler<SMTPSession> overrideCommandHandler)
          Put a new line handler in the chain
 void setRelayingAllowed(boolean relayingAllowed)
          Set if reallying is allowed
 boolean useAddressBracketsEnforcement()
          Return wheter the mailserver will accept addresses without brackets enclosed.
 boolean useHeloEhloEnforcement()
          Returns whether the remote server needs to send a HELO/EHLO of its senders.
 
Methods inherited from interface org.apache.james.protocols.api.ProtocolSession
getConnectionState, getLogger, getRemoteHost, getRemoteIPAddress, getSessionID, getState, getUser, isStartTLSSupported, isTLSStarted, newFatalErrorResponse, newLineTooLongResponse, resetState, setUser
 

Field Detail

SENDER

static final String SENDER
Sender's email address

See Also:
Constant Field Values

RCPT_LIST

static final String RCPT_LIST
The message recipients

See Also:
Constant Field Values

CURRENT_HELO_MODE

static final String CURRENT_HELO_MODE
HELO or EHLO

See Also:
Constant Field Values

CURRENT_HELO_NAME

static final String CURRENT_HELO_NAME
See Also:
Constant Field Values
Method Detail

getHelloName

String getHelloName()
Returns the service wide hello name

Returns:
the hello name

useHeloEhloEnforcement

boolean useHeloEhloEnforcement()
Returns whether the remote server needs to send a HELO/EHLO of its senders.

Returns:
whether SMTP authentication is on

getSMTPGreeting

String getSMTPGreeting()
Return the SMTPGreeting which should used.

Returns:
the SMTPGreeting

getMaxMessageSize

long getMaxMessageSize()
Returns the service wide maximum message size in bytes.

Returns:
the maximum message size

useAddressBracketsEnforcement

boolean useAddressBracketsEnforcement()
Return wheter the mailserver will accept addresses without brackets enclosed.

Returns:
true or false

isRelayingAllowed

boolean isRelayingAllowed()
Returns whether Relaying is allowed or not

Returns:
the relaying status

setRelayingAllowed

void setRelayingAllowed(boolean relayingAllowed)
Set if reallying is allowed

Parameters:
relayingAllowed -

isAuthSupported

boolean isAuthSupported()
Returns whether Authentication is required or not

Returns:
authentication required or not

getRcptCount

int getRcptCount()
Returns the recipient count

Returns:
recipient count

pushLineHandler

void pushLineHandler(LineHandler<SMTPSession> overrideCommandHandler)
Put a new line handler in the chain

Parameters:
overrideCommandHandler -

popLineHandler

void popLineHandler()
Pop the last command handler


getPushedLineHandlerCount

int getPushedLineHandlerCount()
Return the size of the pushed LineHandler

Returns:
size of the pushed line handler


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.