public abstract class AAT extends Object implements ATResponse
Modifier and Type | Class and Description |
---|---|
static class |
AAT.Mode |
static class |
AAT.Status |
Modifier and Type | Field and Description |
---|---|
static char |
CR |
static int |
CTRLZ |
protected StringBuilder |
response |
protected AAT.Status |
status |
Constructor and Description |
---|
AAT(String commandName) |
AAT(String commandName,
AAT.Mode mode) |
Modifier and Type | Method and Description |
---|---|
boolean |
appendResponse(String partOfResponse) |
static String |
crrt(String input) |
static String |
dashCrrt(String input) |
static String |
deleteCrrt(String input) |
CmsError |
getCmsError() |
String |
getCommandRequest() |
AAT.Mode |
getMode() |
protected String |
getName() |
String |
getPrefix() |
protected String |
getQuestionRequest() |
String |
getRequest() |
String |
getResponse() |
AAT.Status |
getStatus() |
protected String |
getSupportRequest() |
protected boolean |
isComplete() |
boolean |
isStatus(AAT.Status status) |
boolean |
isStatusOK() |
protected void |
parseCMS(StringBuilder response) |
protected void |
parseCommandResult(String response)
Parse additional OK result.
|
protected void |
parseQuestionResult(String response) |
protected void |
parseSupportResult(String response) |
void |
setWaitingStatus() |
public static final char CR
public static final int CTRLZ
protected final StringBuilder response
protected AAT.Status status
public AAT(String commandName)
public void setWaitingStatus()
public boolean appendResponse(String partOfResponse)
appendResponse
in interface ATResponse
protected boolean isComplete()
protected void parseCMS(StringBuilder response)
public CmsError getCmsError()
protected void parseCommandResult(String response)
response
- protected void parseQuestionResult(String response)
protected void parseSupportResult(String response)
public String getResponse()
getResponse
in interface ATResponse
public AAT.Status getStatus()
public boolean isStatus(AAT.Status status)
public boolean isStatusOK()
public String getRequest()
public String getCommandRequest()
protected String getQuestionRequest()
protected String getSupportRequest()
protected final String getName()
public AAT.Mode getMode()
public String getPrefix()
Copyright © 2015–2016 jSMS4Pi. All rights reserved.