|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--pawn.services.presence.PresenceServiceImpl
The implementation of the PresenceService interface. This service builds on top of the Discovery service to provide the functionality for requesting and providing presence information.
| Field Summary | |
static java.lang.String |
refModuleSpecID
The Module Specification ID for the Presence service. |
| Fields inherited from interface pawn.services.presence.PresenceService |
AWAY, BUSY, OFFLINE, ONLINE, refModuleClassID |
| Constructor Summary | |
PresenceServiceImpl()
PresenceServiceImpl constructor comment. |
|
| Method Summary | |
void |
addListener(pawn.services.presence.PresenceListener listener)
Add a listener object to the service. |
void |
announcePresence(int presenceStatus,
java.lang.String emailAddress,
java.lang.String name)
Announce presence status information to the peer group. |
void |
discoveryEvent(net.jxta.discovery.DiscoveryEvent event)
Handle notification of arriving discovery response messages, determine if the response contains presence information, and if so, dispatches the presence information to registered PresenceListeners. |
void |
findPresence(java.lang.String emailAddress)
Sends a query to find presence information for the user specified by the given email address. |
net.jxta.document.Advertisement |
getImplAdvertisement()
Returns the advertisement for this service. |
net.jxta.service.Service |
getInterface()
Returns an interface used to protect this service. |
void |
init(net.jxta.peergroup.PeerGroup group,
net.jxta.id.ID assignedID,
net.jxta.document.Advertisement implAdv)
Initialize the service. |
boolean |
removeListener(pawn.services.presence.PresenceListener listener)
Remove a given listener object from the service. |
int |
startApp(java.lang.String[] args)
Start the service. |
void |
stopApp()
Stop the service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String refModuleSpecID
| Constructor Detail |
public PresenceServiceImpl()
| Method Detail |
public void addListener(pawn.services.presence.PresenceListener listener)
addListener in interface PresenceServicelistener - the listener object to register with the service.
public void announcePresence(int presenceStatus,
java.lang.String emailAddress,
java.lang.String name)
announcePresence in interface PresenceServicepresenceStatus - the current status to announce.emailAddress - the user's email address.name - the user's display name.public void discoveryEvent(net.jxta.discovery.DiscoveryEvent event)
discoveryEvent in interface net.jxta.discovery.DiscoveryListenerevent - the object containing the discovery response.public void findPresence(java.lang.String emailAddress)
findPresence in interface PresenceServiceemailAddress - the email address to use to find presence info.public net.jxta.document.Advertisement getImplAdvertisement()
getImplAdvertisement in interface net.jxta.service.Servicepublic net.jxta.service.Service getInterface()
getInterface in interface net.jxta.service.Service
public void init(net.jxta.peergroup.PeerGroup group,
net.jxta.id.ID assignedID,
net.jxta.document.Advertisement implAdv)
throws net.jxta.exception.PeerGroupException
init in interface net.jxta.platform.Modulegroup - the PeerGroup containing this service.assignedID - the identifier for this service.implAdv - the advertisement specifying this service.
net.jxta.exception.PeerGroupException - is not thrown ever by this implementation.public boolean removeListener(pawn.services.presence.PresenceListener listener)
removeListener in interface PresenceServicelistener - the listener object to unregister.public int startApp(java.lang.String[] args)
startApp in interface net.jxta.platform.Moduleargs - the arguments to the service. Not used.
public void stopApp()
stopApp in interface net.jxta.platform.Module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||