|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.protocols.smtp.SMTPResponse
public final class SMTPResponse
Contains an SMTP result
| Constructor Summary | |
|---|---|
SMTPResponse(java.lang.String rawLine)
Construct a new SMTPResponse. |
|
SMTPResponse(java.lang.String code,
java.lang.CharSequence description)
Construct a new SMTPResponse. |
|
| Method Summary | |
|---|---|
void |
appendLine(java.lang.CharSequence line)
Append the responseLine to the SMTPResponse |
java.util.List<java.lang.CharSequence> |
getLines()
Return a List of all responseLines stored in this SMTPResponse |
java.lang.String |
getRawLine()
Return the raw representation of the Stored SMTPResponse |
java.lang.String |
getRetCode()
Return the SMTPCode |
boolean |
isEndSession()
Return true if the session is ended |
void |
setEndSession(boolean endSession)
Set to true to end the session |
void |
setRetCode(java.lang.String retCode)
Set the SMTPCode |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SMTPResponse(java.lang.String code,
java.lang.CharSequence description)
code - the returnCodedescription - the descriptionpublic SMTPResponse(java.lang.String rawLine)
rawLine - the raw SMTPResponse| Method Detail |
|---|
public void appendLine(java.lang.CharSequence line)
appendLine in interface Responseline - the responseLine to appendpublic java.lang.String getRetCode()
getRetCode in interface RetCodeResponsepublic void setRetCode(java.lang.String retCode)
setRetCode in interface RetCodeResponseretCode - the SMTPCodepublic java.util.List<java.lang.CharSequence> getLines()
getLines in interface Responsepublic java.lang.String getRawLine()
getRawLine in interface Responsepublic boolean isEndSession()
isEndSession in interface Responsepublic void setEndSession(boolean endSession)
setEndSession in interface ResponseendSession - public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||