Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.jmdns.ServiceInfo
javax.jmdns.impl.ServiceInfoImpl
Field Summary |
Fields inherited from class javax.jmdns.ServiceInfo | |
NO_VALUE |
Constructor Summary | |
| |
| |
| |
|
Method Summary | |
void |
|
void |
|
boolean |
|
InetAddress | |
JmDNSImpl |
|
String | |
InetAddress | |
String |
|
String | |
int |
|
int | |
byte[] |
|
Enumeration | |
String |
|
String | |
String | |
DNSState |
|
TimerTask |
|
byte[] |
|
byte[] | |
String | |
String |
|
String |
|
String |
|
int | |
boolean |
|
int |
|
void | |
void |
|
void |
|
String |
|
void |
|
Methods inherited from class javax.jmdns.ServiceInfo | |
create , create , create , create , getAddress , getHostAddress , getInetAddress , getName , getNiceTextString , getPort , getPriority , getPropertyBytes , getPropertyNames , getPropertyString , getQualifiedName , getServer , getTextBytes , getTextString , getType , getURL , getURL , getWeight |
public ServiceInfoImpl(String type, String name, int port, String text)
public ServiceInfoImpl(String type, String name, int port, int weight, int priority, Hashtable props)
public ServiceInfoImpl(String type, String name, int port, int weight, int priority, String text)
public ServiceInfoImpl(String type, String name, int port, int weight, int priority, text[] )
- See Also:
javax.jmdns.ServiceInfo.create(String, String, int, int, int, byte[])
public void advanceState()
Sets the state and notifies all objects that wait on the ServiceInfo.
public boolean equals(Object obj)
public String getHostAddress()
- Overrides:
- getHostAddress in interface ServiceInfo
- See Also:
ServiceInfo.getHostAddress()
public InetAddress getInetAddress()
- Overrides:
- getInetAddress in interface ServiceInfo
- See Also:
ServiceInfo.getInetAddress()
public String getName()
- Overrides:
- getName in interface ServiceInfo
- See Also:
ServiceInfo.getName()
public String getNiceTextString()
- Overrides:
- getNiceTextString in interface ServiceInfo
public int getPriority()
- Overrides:
- getPriority in interface ServiceInfo
- See Also:
ServiceInfo.getPriority()
public byte[] getPropertyBytes(String name)
- Overrides:
- getPropertyBytes in interface ServiceInfo
- See Also:
javax.jmdns.ServiceInfo.getPropertyBytes(java.lang.String)
public Enumeration getPropertyNames()
- Overrides:
- getPropertyNames in interface ServiceInfo
- See Also:
ServiceInfo.getPropertyNames()
public String getPropertyString(String name)
- Overrides:
- getPropertyString in interface ServiceInfo
- See Also:
javax.jmdns.ServiceInfo.getPropertyString(java.lang.String)
public String getQualifiedName()
- Overrides:
- getQualifiedName in interface ServiceInfo
- See Also:
ServiceInfo.getQualifiedName()
public String getServer()
- Overrides:
- getServer in interface ServiceInfo
- See Also:
ServiceInfo.getServer()
public TimerTask getTask()
public byte[] getText()
public byte[] getTextBytes()
- Overrides:
- getTextBytes in interface ServiceInfo
- See Also:
ServiceInfo.getTextBytes()
public String getTextString()
- Overrides:
- getTextString in interface ServiceInfo
- See Also:
ServiceInfo.getTextString()
public String getType()
- Overrides:
- getType in interface ServiceInfo
- See Also:
ServiceInfo.getType()
public String getURL(String protocol)
- Overrides:
- getURL in interface ServiceInfo
- See Also:
javax.jmdns.ServiceInfo.getURL(java.lang.String)
public int getWeight()
- Overrides:
- getWeight in interface ServiceInfo
- See Also:
ServiceInfo.getWeight()
public boolean hasData()
Returns true if the service info is filled with data.
public int hashCode()
public void setTask(TimerTask task)
public void setText(byte[] text)
public String toString()
public void updateRecord(JmDNSImpl jmdns, long now, DNSRecord rec)
JmDNS callback to update a DNS record.
- Specified by:
- updateRecord in interface javax.jmdns.impl.DNSListener