| 
HOME | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ireasoning.protocol.tl1.TL1Command
This class is used to create a TL1 Command. TL1 command's format:
 "ACTION:TID:AIDs:CTAG:[General Block]:[Data Block]*;". 
For example, for TL1
 command  "ACT-USER::username:123::password;", action is "ACT-USER", tid is
 empty, aid is "username", ctag is "123", general block is empty, data block
 is "password"
TL1Session, 
Serialized Form| Constructor Summary | |
TL1Command()
Default constructor  | 
|
TL1Command(String command)
Constructs a TL1 command  | 
|
TL1Command(String action,
           String tid,
           String aid,
           String ctag)
Constructs a TL1 command.  | 
|
TL1Command(String action,
           String tid,
           String aid,
           String ctag,
           String dataBlock)
Constructs a TL1 command.  | 
|
TL1Command(String action,
           String tid,
           String aid,
           String ctag,
           String generalBlock,
           String dataBlock)
Constructs a TL1 command.  | 
|
TL1Command(String action,
           String tid,
           String aid,
           String ctag,
           String generalBlock,
           String[] dataBlocks)
Constructs a TL1 command.  | 
|
| Method Summary | |
static TL1Command | 
act_user(String user,
         String password)
Creates ACT-USER command, with empty tid and ctag .  | 
static TL1Command | 
act_user(String user,
         String password,
         String tid,
         String ctag)
Creates ACT-USER command.  | 
static TL1Command | 
canc_user(String user)
Creates CANC-USER command, with empty tid and ctag  | 
static TL1Command | 
canc_user(String user,
          String tid,
          String ctag)
Creates CANC-USER command  | 
 boolean | 
equals(Object obj)
Indicates whether some other object is "equal to" this one.  | 
 boolean | 
equalsIgnoreCase(TL1Command cmd)
Compares this TL1Command to another TL1Command, ignoring case considerations.  | 
 String | 
getAction()
Returns the action part of TL1 command  | 
 String | 
getAID()
Returns access identifier  | 
 String | 
getAID2()
Returns the second access identifier (some commands have two access identifiers)  | 
 String | 
getCTAG()
Returns correlation tag  | 
 String | 
getDataBlock()
Returns the first data block  | 
 String[] | 
getDataBlocks()
Returns all data blocks  | 
 String | 
getGeneralBlock()
Returns the general block of TL1 command  | 
 String | 
getTID()
Returns target identifier  | 
 int | 
hashCode()
Returns the hash code value for this TL1Command object  | 
 void | 
setAction(String s)
Sets action part of TL1 command  | 
 void | 
setAID(String s)
Sets access identifier.  | 
 void | 
setAID2(String s)
Sets the second access identifier  | 
 void | 
setCommand(String s)
Sets a new TL1 command  | 
 void | 
setCTAG(String s)
Sets correlation tag  | 
 void | 
setDataBlock(String s)
Sets "Data Block" value  | 
 void | 
setDataBlocks(String[] dataBlocks)
If there are multiple data blocks, set values to all of them  | 
 void | 
setGeneralBlock(String s)
Sets the general block part of TL1 command.  | 
 void | 
setTID(String s)
Sets target identifier  | 
 String | 
toString()
Returns a String representation  | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public TL1Command()
public TL1Command(String command)
           throws TL1ParsingException
command - the raw TL1 command string, e.g.
 "ACT-USER::username:123::password;"
public TL1Command(String action,
                  String tid,
                  String aid,
                  String ctag)
action - action part of TL1 commandtid - target IDaid - access identifierctag - correlation tag
public TL1Command(String action,
                  String tid,
                  String aid,
                  String ctag,
                  String dataBlock)
action - action part of TL1 commandtid - target IDaid - access identifierctag - correlation tagdataBlock - data block part of TL1 command
public TL1Command(String action,
                  String tid,
                  String aid,
                  String ctag,
                  String generalBlock,
                  String dataBlock)
action - action part of TL1 commandtid - target IDaid - access identifierctag - correlation tagdataBlock - data block part of TL1 commandgeneralBlock - general block part of TL1 command
public TL1Command(String action,
                  String tid,
                  String aid,
                  String ctag,
                  String generalBlock,
                  String[] dataBlocks)
action - action part of TL1 commandtid - target IDaid - access identifierctag - correlation tagdataBlocks - one or more data blocksgeneralBlock - general block part of TL1 command| Method Detail | 
public static TL1Command act_user(String user,
                                  String password,
                                  String tid,
                                  String ctag)
user - user namepassword - passwordtid - target IDctag - correlation tag
public static TL1Command act_user(String user,
                                  String password)
user - user namepassword - passwordpublic static TL1Command canc_user(String user)
public static TL1Command canc_user(String user,
                                   String tid,
                                   String ctag)
user - user nametid - target IDctag - correlation tagpublic String getAID()
public String getAID2()
public String getDataBlock()
public String[] getDataBlocks()
public String getCTAG()
public String getTID()
public String getAction()
public void setAID(String s)
s - Acess identifier. Use "null" if no AID data.public void setAID2(String s)
s - Acess identifier. Use "null" if no AID data.public void setGeneralBlock(String s)
s - general blockpublic String getGeneralBlock()
public void setDataBlock(String s)
s - the value of "Data Block"public void setDataBlocks(String[] dataBlocks)
dataBlocks - array of data blocks.public void setCTAG(String s)
s - correlation tagpublic void setTID(String s)
s - target identifierpublic void setAction(String s)
s - action string
public void setCommand(String s)
                throws TL1ParsingException
s - new raw TL1 command, e.g.  "ACT-USER::username:123::password;"
TL1ParsingExceptionpublic String toString()
public boolean equalsIgnoreCase(TL1Command cmd)
cmd - the TL1Command instance to compare this one against
public boolean equals(Object obj)
obj - the TL1Command to compare this one against
public int hashCode()
  | 
HOME | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||