All Packages Class Hierarchy This Package Previous Next Index
Class beacon.BClient
java.lang.Object
|
+----beacon.BClient
- public class BClient
- extends Object
The BClient class provides a standard interface to location services.
Any user interface planning to publish locations should do so through
the BClient. Handles authentication.
-
changePassword(String)
- Change the password
-
connectionPong(int)
- Indicate that the a location continues to be valid
-
expiryPing()
- Don't do anything other than tell the server the user still exists
(but don't publish a location)
-
register(String)
- Register for an alias
-
removeLocation(int)
- Remove a published location from the server
-
requestLocation(String)
- Request the location of another alias
-
setIdentity(String, String)
- Used to specify the alias and password this client should use
-
setLocation(int)
- Publish a location at the server
-
setServer(String)
- Set the location server to talk to
setServer
public void setServer(String serverURL)
- Set the location server to talk to
- Parameters:
- serverURL - This is a string which specifies the URL for the location server
setIdentity
public void setIdentity(String a,
String p)
- Used to specify the alias and password this client should use
- Parameters:
- a - The alias
- p - The password
setLocation
public String setLocation(int port)
- Publish a location at the server
- Parameters:
- port - This is the port for default communications
removeLocation
public String removeLocation(int port)
- Remove a published location from the server
- Parameters:
- port - The port of the location to be removed
register
public void register(String contact)
- Register for an alias
- Parameters:
- contact - This is the email address to which the initial
password will be sent
expiryPing
public void expiryPing()
- Don't do anything other than tell the server the user still exists
(but don't publish a location)
connectionPong
public void connectionPong(int port)
- Indicate that the a location continues to be valid
- Parameters:
- port - The port of the location
changePassword
public String changePassword(String newpw)
- Change the password
- Parameters:
- newpw - The new password
requestLocation
public String requestLocation(String oalias)
- Request the location of another alias
- Parameters:
- oalias - The alias that a location is desired for
All Packages Class Hierarchy This Package Previous Next Index