org.apache.james.protocols.smtp
Class SMTPResponse
java.lang.Object
org.apache.james.protocols.api.AbstractResponse
org.apache.james.protocols.smtp.SMTPResponse
- All Implemented Interfaces:
- Response
- Direct Known Subclasses:
- SMTPStartTLSResponse
public class SMTPResponse
- extends AbstractResponse
Contains an SMTP result
SMTPResponse
protected SMTPResponse()
SMTPResponse
public SMTPResponse(String code,
CharSequence description)
- Construct a new SMTPResponse. The given code and description can not be null, if null an IllegalArgumentException
get thrown
- Parameters:
code - the returnCodedescription - the description
SMTPResponse
public SMTPResponse(String rawLine)
- Construct a new SMTPResponse. The given rawLine need to be in format [SMTPResponseReturnCode SMTResponseDescription].
If this is not the case an IllegalArgumentException get thrown.
- Parameters:
rawLine - the raw SMTPResponse
getLines
public List<CharSequence> getLines()
- See Also:
Response.getLines()
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.