|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.lip6.sma.simulacion.server.http.HTTPMDNSBrowser
public class HTTPMDNSBrowser
Class to handle the list of MDNS advertised servers.
Field Summary | |
---|---|
private int |
mBrowseRequestID
ID of the browse request. |
private EventListenerList |
mEventListenerList
List of listeners. |
private Map |
mHTTPServers
Set of available servers. |
private com.kallisys.zeroconf.MulticastDNSServer |
mMDNSServer
MDNSServer. |
private String |
mServiceNamePrefix
Prefix of the name of the services we're searching. |
Fields inherited from interface com.kallisys.zeroconf.MulticastDNSClient |
---|
BROWSERFLAG_MORECOMING, BROWSERFLAG_REMOVE |
Constructor Summary | |
---|---|
HTTPMDNSBrowser(Configuration inConfig)
Constructor from the configuration. |
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener inListener)
Adds a ChangeListener to this browser's listeners. |
protected void |
fireStateChanged()
Fire a state change. |
List |
getHTTPServers()
Accessor on the list of servers. |
void |
multicastDNSBrowserCallBack(int inRequestID,
int inBrowserFlags,
com.kallisys.zeroconf.NetService inService,
IOException inException)
|
void |
multicastDNSRegistrationCallBack(int inRequestID,
com.kallisys.zeroconf.NetService inService,
IOException inException)
Ignored. |
void |
multicastDNSResolutionCallBack(int inRequestID,
com.kallisys.zeroconf.NetService inService,
IOException inException)
|
void |
removeChangeListener(ChangeListener inListener)
Removes a ChangeListener from this browser's listeners. |
void |
shutdown()
Shutdown the browser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final EventListenerList mEventListenerList
private final com.kallisys.zeroconf.MulticastDNSServer mMDNSServer
private final String mServiceNamePrefix
private final int mBrowseRequestID
private final Map mHTTPServers
NetService
s.
Constructor Detail |
---|
public HTTPMDNSBrowser(Configuration inConfig) throws com.kallisys.zeroconf.MDNSException
inConfig
- configuration for this client.
com.kallisys.zeroconf.MDNSException
- if a problem occurs.Method Detail |
---|
public void shutdown()
public final void addChangeListener(ChangeListener inListener)
ChangeListener
to this browser's listeners.
inListener
- the listener to add.public final void removeChangeListener(ChangeListener inListener)
ChangeListener
from this browser's listeners.
inListener
- the listener to remove.public final List getHTTPServers()
public final void multicastDNSRegistrationCallBack(int inRequestID, com.kallisys.zeroconf.NetService inService, IOException inException)
multicastDNSRegistrationCallBack
in interface com.kallisys.zeroconf.MulticastDNSClient
public final void multicastDNSResolutionCallBack(int inRequestID, com.kallisys.zeroconf.NetService inService, IOException inException)
multicastDNSResolutionCallBack
in interface com.kallisys.zeroconf.MulticastDNSClient
public final void multicastDNSBrowserCallBack(int inRequestID, int inBrowserFlags, com.kallisys.zeroconf.NetService inService, IOException inException)
multicastDNSBrowserCallBack
in interface com.kallisys.zeroconf.MulticastDNSClient
protected void fireStateChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |