org.semispace.ws.client
Class SemiSpaceTokenProxy

java.lang.Object
  extended by org.semispace.ws.client.SemiSpaceTokenProxy
All Implemented Interfaces:
org.semispace.SemiSpaceInterface

public class SemiSpaceTokenProxy
extends Object
implements org.semispace.SemiSpaceInterface


Method Summary
 String getPassword()
           
 String getUsername()
           
 boolean hasToken()
          If a token is present, you are authenticated
 org.semispace.SemiEventRegistration notify(Object template, org.semispace.SemiEventListener listener, long duration)
          Notify is illegal to use in proxy
 Object read(Object template, long duration)
           
 Object readIfExists(Object template)
           
protected static TokenWsSpace readSpaceServiceAsSpring()
          An alternative way of performing lookup
protected static TokenWsSpace readSpaceServiceAsStandardPort()
           
protected static TokenWsSpace readSpaceServiceAsStandardPort(String endpointAddress)
           
static SemiSpaceTokenProxy retrieveSpace(String endpoint)
          Open WS connection to the defined end point.
protected static SemiSpaceTokenProxy retrieveSpace(TokenWsSpace space)
          This is a bit roundabout, but is used for junit purposes.
 void setPassword(String password)
           
protected  void setSpace(TokenWsSpace space)
           
 void setUsername(String username)
           
 Object take(Object template, long duration)
           
 Object takeIfExists(Object template)
           
 org.semispace.SemiLease write(Object obj, long duration)
          TODO Consider fixing that null is always returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

retrieveSpace

public static SemiSpaceTokenProxy retrieveSpace(String endpoint)
Open WS connection to the defined end point. This should be something similar to http://localhost:8080/semispace-war/services/tokenspace.


readSpaceServiceAsSpring

protected static TokenWsSpace readSpaceServiceAsSpring()
An alternative way of performing lookup


readSpaceServiceAsStandardPort

protected static TokenWsSpace readSpaceServiceAsStandardPort()

readSpaceServiceAsStandardPort

protected static TokenWsSpace readSpaceServiceAsStandardPort(String endpointAddress)

retrieveSpace

protected static SemiSpaceTokenProxy retrieveSpace(TokenWsSpace space)
This is a bit roundabout, but is used for junit purposes.


notify

public org.semispace.SemiEventRegistration notify(Object template,
                                                  org.semispace.SemiEventListener listener,
                                                  long duration)
Notify is illegal to use in proxy

Specified by:
notify in interface org.semispace.SemiSpaceInterface

read

public Object read(Object template,
                   long duration)
Specified by:
read in interface org.semispace.SemiSpaceInterface

readIfExists

public Object readIfExists(Object template)
Specified by:
readIfExists in interface org.semispace.SemiSpaceInterface

take

public Object take(Object template,
                   long duration)
Specified by:
take in interface org.semispace.SemiSpaceInterface

takeIfExists

public Object takeIfExists(Object template)
Specified by:
takeIfExists in interface org.semispace.SemiSpaceInterface

write

public org.semispace.SemiLease write(Object obj,
                                     long duration)
TODO Consider fixing that null is always returned.

Specified by:
write in interface org.semispace.SemiSpaceInterface
Returns:
will presently ALWAYS return null, even when operation was a success.
See Also:
SemiSpaceInterface.write(java.lang.Object, long)

hasToken

public boolean hasToken()
If a token is present, you are authenticated


setSpace

protected void setSpace(TokenWsSpace space)


Copyright © 2008-2012. All Rights Reserved.