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.


Method Index

 o changePassword(String)
Change the password
 o connectionPong(int)
Indicate that the a location continues to be valid
 o expiryPing()
Don't do anything other than tell the server the user still exists (but don't publish a location)
 o register(String)
Register for an alias
 o removeLocation(int)
Remove a published location from the server
 o requestLocation(String)
Request the location of another alias
 o setIdentity(String, String)
Used to specify the alias and password this client should use
 o setLocation(int)
Publish a location at the server
 o setServer(String)
Set the location server to talk to

Methods

 o 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
 o 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
 o setLocation
 public String setLocation(int port)
Publish a location at the server

Parameters:
port - This is the port for default communications
 o removeLocation
 public String removeLocation(int port)
Remove a published location from the server

Parameters:
port - The port of the location to be removed
 o 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
 o expiryPing
 public void expiryPing()
Don't do anything other than tell the server the user still exists (but don't publish a location)

 o connectionPong
 public void connectionPong(int port)
Indicate that the a location continues to be valid

Parameters:
port - The port of the location
 o changePassword
 public String changePassword(String newpw)
Change the password

Parameters:
newpw - The new password
 o 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