|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstella.net.tpl.TplCommand
stella.net.tpl.TplGet
public class TplGet
The get command. Parses only inline data from the TplEvent.
| Field Summary | |
|---|---|
private Object |
datastate
The state of the value, null OK or ERROR |
static String |
GET
The get command string. |
static String |
INLINE
The state of the reply for incoming data. |
private String |
lead
The requested object. |
private Object |
value
The value of the requested variable. |
| Fields inherited from class stella.net.tpl.TplCommand |
|---|
ABORTED, ABORTEDBY, BUSY, COMPLETE, DENIED, DIMENSION, ERROR, FAILED, IDBUSY, INVALID, LOCKED, NOTRUNNING, OK, OVERRUN, RANGE, SYNTAX, TIMEOUT, TOOMANY, TYPE, UNKNOWN |
| Constructor Summary | |
|---|---|
TplGet(int id,
String query)
Constructs a new get command specifiying the object to retrieve. |
|
| Method Summary | |
|---|---|
String |
getCommandLead()
Returns the query string. |
Object |
getDataState()
Returns the state of the data field. |
Object |
getValue()
Returns the return value of the TPL GET command. |
boolean |
parseTplEvent(TplEvent reply)
Additionally checks if the event represents the queried data. |
| Methods inherited from class stella.net.tpl.TplCommand |
|---|
commenceCommand, getCommencedWhen, getID, getInfo, getState, hashCode, isAcknowledged, isCompleted, isSending, setInfo, setState, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String GET
public static final String INLINE
private Object value
private Object datastate
private String lead
| Constructor Detail |
|---|
public TplGet(int id,
String query)
| Method Detail |
|---|
public String getCommandLead()
GET and a space.
getCommandLead in class TplCommandpublic Object getDataState()
TplCommand.OK or TplCommand.ERROR.
public Object getValue()
public boolean parseTplEvent(TplEvent reply)
throws ParseException
parseTplEvent in class TplCommandParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||