fi.hut.tml.xsmiles.protocol.wesahmi
Class BrowserSubscriber

java.lang.Object
  extended byjava.lang.Thread
      extended byfi.hut.tml.xsmiles.protocol.wesahmi.BrowserSubscriber
All Implemented Interfaces:
java.lang.Runnable, Subscriber.MessageListener

public class BrowserSubscriber
extends java.lang.Thread
implements Subscriber.MessageListener


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BrowserSubscriber(BrowserTable bt, java.lang.String address, java.lang.String service, java.lang.String url, java.lang.String clientID, java.lang.String[] flightNumbers, java.lang.String[] sdts)
           
 
Method Summary
 void closeView()
           
 java.lang.String getClientID()
           
 java.lang.String[] getFlightNumbers()
           
 java.lang.String[] getFlightTimes()
           
 void notificationReceived(Notification notification)
           
 void registerToService()
           
 void run()
           
 void sendSubscriptionRefresh(java.lang.String body)
           
 void unregisterFromService()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrowserSubscriber

public BrowserSubscriber(BrowserTable bt,
                         java.lang.String address,
                         java.lang.String service,
                         java.lang.String url,
                         java.lang.String clientID,
                         java.lang.String[] flightNumbers,
                         java.lang.String[] sdts)
Method Detail

registerToService

public void registerToService()

run

public void run()
Specified by:
run in interface java.lang.Runnable

closeView

public void closeView()

sendSubscriptionRefresh

public void sendSubscriptionRefresh(java.lang.String body)

unregisterFromService

public void unregisterFromService()

getClientID

public java.lang.String getClientID()

getFlightNumbers

public java.lang.String[] getFlightNumbers()

getFlightTimes

public java.lang.String[] getFlightTimes()

notificationReceived

public void notificationReceived(Notification notification)
Specified by:
notificationReceived in interface Subscriber.MessageListener


X-Smiles 1.2