public abstract class AbstractResponse extends Object implements Response
Response
Modifier and Type | Field and Description |
---|---|
protected List<CharSequence> |
lines |
DISCONNECT
Modifier | Constructor and Description |
---|---|
protected |
AbstractResponse() |
|
AbstractResponse(String code,
CharSequence description)
Construct a new SMTPResponse.
|
Modifier and Type | Method and Description |
---|---|
void |
appendLine(CharSequence line)
Append the responseLine to the SMTPResponse
|
String |
getRetCode()
Return the SMTPCode
|
Response |
immutable()
Return a immutable instance of this
AbstractResponse |
boolean |
isEndSession()
Return true if the session is ended
|
void |
setEndSession(boolean endSession)
Set to true to end the session
|
void |
setRetCode(String retCode)
Set the SMTPCode
|
String |
toString() |
protected final List<CharSequence> lines
protected AbstractResponse()
public AbstractResponse(String code, CharSequence description)
code
- the returnCodedescription
- the descriptionpublic void appendLine(CharSequence line)
line
- the responseLine to appendpublic String getRetCode()
getRetCode
in interface Response
public void setRetCode(String retCode)
retCode
- the SMTPCodepublic boolean isEndSession()
isEndSession
in interface Response
public void setEndSession(boolean endSession)
endSession
- public final String toString()
toString
in class Object
Object.toString()
public Response immutable()
AbstractResponse
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.