|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.mercury.smtp.SMTPResponse
public class SMTPResponse
SMTP response
| Field Summary | |
|---|---|
protected int |
code
Response code |
protected static byte[] |
CRLF
CR as byte array |
protected String[] |
msg
List of messages |
| Constructor Summary | |
|---|---|
SMTPResponse(int code)
Constructor |
|
SMTPResponse(int code,
String msg)
Constructor |
|
SMTPResponse(int code,
String[] msg)
Constructor |
|
| Method Summary | |
|---|---|
void |
addLine(String line)
Adds new line |
int |
getCode()
Returns code. |
void |
setLine(String line)
Sets line |
void |
submit(OutputStream out)
Submits response |
String |
toString()
Returns string representation of response |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final byte[] CRLF
protected int code
protected String[] msg
| Constructor Detail |
|---|
public SMTPResponse(int code)
code - code
public SMTPResponse(int code,
String msg)
code - codemsg - message
public SMTPResponse(int code,
String[] msg)
code - codemsg - array of strings| Method Detail |
|---|
public void setLine(String line)
line - linepublic void addLine(String line)
line - line
public void submit(OutputStream out)
throws IOException
out - output stream
IOExceptionpublic String toString()
toString in class Objectpublic int getCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||