|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.admc.jamama.server.smtp.Session
Handles a single client SMTP connection.
| Field Summary | |
static int |
STATE_DATA
State of the SMTP connection |
static int |
STATE_DISCONNECTED
State of the SMTP connection |
static int |
STATE_GREETED
State of the SMTP connection |
static int |
STATE_MAIL
State of the SMTP connection |
static int |
STATE_PREGREET
State of the SMTP connection |
static int |
STATE_RCPT
State of the SMTP connection |
| Constructor Summary | |
Session(java.net.Socket inSocket,
Director inDirector)
|
|
| Method Summary | |
java.lang.String |
getData()
Get all data lines for this SMTP data command. |
java.lang.String |
getLine()
Get one line of text from the SMTP pipe. |
void |
handle()
Main method in this class. |
void |
send(int i,
java.lang.String inText)
Write a status code and string to SMTP pipe. |
void |
send(java.lang.String inCommand)
Write a string to SMTP pipe. |
void |
setDebug(boolean inDebug)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int STATE_DISCONNECTED
public static final int STATE_PREGREET
public static final int STATE_GREETED
public static final int STATE_MAIL
public static final int STATE_RCPT
public static final int STATE_DATA
| Constructor Detail |
public Session(java.net.Socket inSocket,
Director inDirector)
| Method Detail |
public void setDebug(boolean inDebug)
public void handle()
throws JamamaException
JamamaException
public void send(java.lang.String inCommand)
throws java.io.IOException
java.io.IOException
public void send(int i,
java.lang.String inText)
throws java.io.IOException
i - SMTP status code to transmitinText - Text to transmit
java.io.IOException
public java.lang.String getData()
throws java.io.IOException
java.io.IOException
public java.lang.String getLine()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||