org.semispace.ws
Interface TokenWsSpace

All Known Implementing Classes:
TokenWsSpaceImpl

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.

See Also:
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

login

String login(String username,
             String password)
Login the user, and return a token if authenticated.


write

void write(String token,
           String contents,
           long timeToLiveMs)

read

String read(String token,
            String template,
            long queryLifeMs)

readIfExists

String readIfExists(String token,
                    String template)

take

String take(String token,
            String template,
            long queryLifeMs)

takeIfExists

String takeIfExists(String token,
                    String template)


Copyright © 2008-2012. All Rights Reserved.