public class SmtpClientResponse extends Object
This class is thread-safe.
Constructor and Description |
---|
SmtpClientResponse(SmtpSession session,
Iterable<io.netty.handler.codec.smtp.SmtpResponse> responses) |
SmtpClientResponse(SmtpSession session,
List<io.netty.handler.codec.smtp.SmtpResponse> responses) |
SmtpClientResponse(SmtpSession session,
io.netty.handler.codec.smtp.SmtpResponse response) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsError()
Gets whether any of the contained
SmtpResponse s have a code >= 400 . |
List<io.netty.handler.codec.smtp.SmtpResponse> |
getResponses()
Gets the
SmtpResponse s. |
SmtpSession |
getSession()
Gets the
SmtpSession that received these responses. |
String |
toString() |
public SmtpClientResponse(SmtpSession session, io.netty.handler.codec.smtp.SmtpResponse response)
public SmtpClientResponse(SmtpSession session, Iterable<io.netty.handler.codec.smtp.SmtpResponse> responses)
public SmtpClientResponse(SmtpSession session, List<io.netty.handler.codec.smtp.SmtpResponse> responses)
public SmtpSession getSession()
SmtpSession
that received these responses.public boolean containsError()
SmtpResponse
s have a code >= 400
.public List<io.netty.handler.codec.smtp.SmtpResponse> getResponses()
SmtpResponse
s.Copyright © 2018. All rights reserved.