public abstract class AsciiResponseBase extends java.lang.Object implements IAsciiResponse
Modifier | Constructor and Description |
---|---|
protected |
AsciiResponseBase()
Initializes a new instance of the AsciiResponseBase class
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendToMessages(java.lang.String message)
Append the given string to the current Messages
|
protected void |
appendToParameters(java.lang.Iterable<java.lang.String> parameters)
Append the given strings to the current Parameters
|
protected void |
appendToResponse(java.lang.String line)
Append the given string to the current Response
|
void |
clearLastResponse()
Clears the response ready to receive a new one
|
java.lang.String |
getErrorCode()
Gets the error code or an empty string if none
|
java.util.List<java.lang.String> |
getMessages()
Gets the messages received during the response
|
java.util.List<java.lang.String> |
getParameters()
Gets the parameters received during the response
|
java.util.List<java.lang.String> |
getResponse()
Gets the lines received during the response
|
boolean |
isSuccessful()
Gets a value indicating whether the command executed successfully
|
protected void |
setErrorCode(java.lang.String value) |
protected void |
setIsSuccessful(boolean value) |
protected void |
setResponse(java.util.ArrayList<java.lang.String> values) |
protected AsciiResponseBase()
public final java.lang.String getErrorCode()
IAsciiResponse
getErrorCode
in interface IAsciiResponse
protected final void setErrorCode(java.lang.String value)
public final boolean isSuccessful()
IAsciiResponse
isSuccessful
in interface IAsciiResponse
protected final void setIsSuccessful(boolean value)
public final java.util.List<java.lang.String> getMessages()
getMessages
in interface IAsciiResponse
public final java.util.List<java.lang.String> getParameters()
getParameters
in interface IAsciiResponse
public final java.util.List<java.lang.String> getResponse()
getResponse
in interface IAsciiResponse
public void clearLastResponse()
protected void appendToMessages(java.lang.String message)
message
- The message to append to the current messagesprotected void appendToParameters(java.lang.Iterable<java.lang.String> parameters)
parameters
- The parameters to append to the current parametersprotected void appendToResponse(java.lang.String line)
line
- The line to append to the current responseprotected void setResponse(java.util.ArrayList<java.lang.String> values)
values
- The new response strings