public class SMTPResponse
extends java.lang.Object
SMTPInputStream
Constructor and Description |
---|
SMTPResponse(int code,
boolean hasSuccessor,
java.lang.String message)
Constructs a SMTPResponse.
|
SMTPResponse(int code,
boolean hasSuccessor,
java.lang.String message,
java.lang.String domain)
Constructs a SMTPResponse.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
java.lang.String |
getDomain() |
java.lang.String |
getMessage() |
boolean |
isERR()
Is the reponse an error response? True if the return code is >= 400.
|
boolean |
isHasSuccessor() |
boolean |
isOK()
Is the reponse an ok response? True if the return code is < 400.
|
void |
setCode(int code) |
void |
setDomain(java.lang.String domain) |
void |
setHasSuccessor(boolean hasSuccessor) |
void |
setMessage(java.lang.String message) |
public SMTPResponse(int code, boolean hasSuccessor, java.lang.String message)
code
- the return codehasSuccessor
- true if there is another reponse to read from the servermessage
- the human readable messagepublic SMTPResponse(int code, boolean hasSuccessor, java.lang.String message, java.lang.String domain)
code
- the return codehasSuccessor
- true if there is another reponse to read from the servermessage
- the human readable messagedomain
- the domain of the serverpublic int getCode()
public void setCode(int code)
code
- The code to set.public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- The message to set.public java.lang.String getDomain()
public void setDomain(java.lang.String domain)
domain
- The domain to set.public boolean isHasSuccessor()
public void setHasSuccessor(boolean hasSuccessor)
hasSuccessor
- The hasSuccessor to set.public boolean isERR()
public boolean isOK()
Copyright © 2021. All Rights Reserved.