|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TokenWsSpace
Web services definition for token authenticated space. Other than insisting that a token is supplied for each operation, the space is equal to the WsSpace
Notice that the token may be a session variable, and when using an invalid token, you will get errors. In that case, you need to re-authenticate and try the query again. In other words, the query itself may be wrong if you get the same erroneous result twice - once before re-authenticating, once after.
WsSpace
Method Summary | |
---|---|
String |
login(String username,
String password)
Login the user, and return a token if authenticated. |
String |
read(String token,
String template,
long queryLifeMs)
|
String |
readIfExists(String token,
String template)
|
String |
take(String token,
String template,
long queryLifeMs)
|
String |
takeIfExists(String token,
String template)
|
void |
write(String token,
String contents,
long timeToLiveMs)
|
Method Detail |
---|
String login(String username, String password)
void write(String token, String contents, long timeToLiveMs)
String read(String token, String template, long queryLifeMs)
String readIfExists(String token, String template)
String take(String token, String template, long queryLifeMs)
String takeIfExists(String token, String template)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |