|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.jmdns.ServiceInfo
javax.jmdns.impl.ServiceInfoImpl
public class ServiceInfoImpl
JmDNS service information.
Field Summary |
---|
Fields inherited from class javax.jmdns.ServiceInfo |
---|
NO_VALUE |
Constructor Summary | |
---|---|
ServiceInfoImpl(java.lang.String type,
java.lang.String name,
int port,
int weight,
int priority,
byte[] text)
|
|
ServiceInfoImpl(java.lang.String type,
java.lang.String name,
int port,
int weight,
int priority,
java.util.Map<java.lang.String,?> props)
|
|
ServiceInfoImpl(java.lang.String type,
java.lang.String name,
int port,
int weight,
int priority,
java.lang.String text)
|
|
ServiceInfoImpl(java.lang.String type,
java.lang.String name,
int port,
java.lang.String text)
|
Method Summary | |
---|---|
void |
addAnswers(DNSOutgoing out,
int ttl,
HostInfo localHost)
|
void |
advanceState()
Sets the state and notifies all objects that wait on the ServiceInfo. |
boolean |
equals(java.lang.Object obj)
|
java.net.InetAddress |
getAddress()
Get the host address of the service. |
JmDNSImpl |
getDns()
|
java.lang.String |
getHostAddress()
Get the host address of the service (ie X.X.X.X). |
java.net.InetAddress |
getInetAddress()
Get the InetAddress of the service. |
java.lang.String |
getName()
Unqualified service instance name, such as foobar . |
java.lang.String |
getNiceTextString()
Returns a description of the service info suitable for printing. |
int |
getPort()
Get the port for the service. |
int |
getPriority()
Get the priority of the service. |
byte[] |
getPropertyBytes(java.lang.String name)
Get a property of the service. |
java.util.Enumeration<java.lang.String> |
getPropertyNames()
Enumeration of the property names. |
java.lang.String |
getPropertyString(java.lang.String name)
Get a property of the service. |
java.lang.String |
getQualifiedName()
Fully qualified service name, such as foobar._http._tcp.local. . |
java.lang.String |
getServer()
Get the name of the server. |
javax.jmdns.impl.constants.DNSState |
getState()
Returns the current state of this info. |
java.util.TimerTask |
getTask()
|
byte[] |
getText()
|
byte[] |
getTextBytes()
Get the text for the service as raw bytes. |
java.lang.String |
getTextString()
Get the text for the service. |
java.lang.String |
getType()
Fully qualified service type name, such as _http._tcp.local. |
java.lang.String |
getURL()
Get the URL for this service. |
java.lang.String |
getURL(java.lang.String protocol)
Get the URL for this service. |
int |
getWeight()
Get the weight of the service. |
int |
hashCode()
|
void |
setDns(JmDNSImpl dns)
|
void |
setTask(java.util.TimerTask task)
|
void |
setText(byte[] text)
|
java.lang.String |
toString()
|
void |
updateRecord(DNSCache dnsCache,
long now,
DNSEntry rec)
JmDNS callback to update a DNS record. |
Methods inherited from class javax.jmdns.ServiceInfo |
---|
create, create, create, create, hasData |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceInfoImpl(java.lang.String type, java.lang.String name, int port, java.lang.String text)
type
- name
- port
- text
- ServiceInfo.create(String, String, int, String)
public ServiceInfoImpl(java.lang.String type, java.lang.String name, int port, int weight, int priority, java.lang.String text)
type
- name
- port
- weight
- priority
- text
- ServiceInfo.create(String, String, int, int, int, String)
public ServiceInfoImpl(java.lang.String type, java.lang.String name, int port, int weight, int priority, java.util.Map<java.lang.String,?> props)
type
- name
- port
- weight
- priority
- props
- ServiceInfo.create(String, String, int, int, int, Map)
public ServiceInfoImpl(java.lang.String type, java.lang.String name, int port, int weight, int priority, byte[] text)
type
- name
- port
- weight
- priority
- text
- ServiceInfo.create(String, String, int, int, int, byte[])
Method Detail |
---|
public java.lang.String getType()
ServiceInfo
_http._tcp.local.
getType
in class ServiceInfo
ServiceInfo.getType()
public java.lang.String getName()
ServiceInfo
foobar
.
getName
in class ServiceInfo
ServiceInfo.getName()
public java.lang.String getQualifiedName()
ServiceInfo
foobar._http._tcp.local.
.
getQualifiedName
in class ServiceInfo
ServiceInfo.getQualifiedName()
public java.lang.String getServer()
ServiceInfo
getServer
in class ServiceInfo
ServiceInfo.getServer()
public java.lang.String getHostAddress()
ServiceInfo
getHostAddress
in class ServiceInfo
ServiceInfo.getHostAddress()
public java.net.InetAddress getAddress()
ServiceInfo
getAddress
in class ServiceInfo
public java.net.InetAddress getInetAddress()
ServiceInfo
getInetAddress
in class ServiceInfo
public int getPort()
ServiceInfo
getPort
in class ServiceInfo
ServiceInfo.getPort()
public int getPriority()
ServiceInfo
getPriority
in class ServiceInfo
ServiceInfo.getPriority()
public int getWeight()
ServiceInfo
getWeight
in class ServiceInfo
ServiceInfo.getWeight()
public byte[] getTextBytes()
ServiceInfo
getTextBytes
in class ServiceInfo
ServiceInfo.getTextBytes()
public java.lang.String getTextString()
ServiceInfo
getTextString
in class ServiceInfo
ServiceInfo.getTextString()
public java.lang.String getURL()
ServiceInfo
getURL
in class ServiceInfo
ServiceInfo.getURL()
public java.lang.String getURL(java.lang.String protocol)
ServiceInfo
getURL
in class ServiceInfo
protocol
- requested protocol
ServiceInfo.getURL(java.lang.String)
public byte[] getPropertyBytes(java.lang.String name)
ServiceInfo
getPropertyBytes
in class ServiceInfo
name
- property name
public java.lang.String getPropertyString(java.lang.String name)
ServiceInfo
getPropertyString
in class ServiceInfo
name
- property name
public java.util.Enumeration<java.lang.String> getPropertyNames()
ServiceInfo
getPropertyNames
in class ServiceInfo
public void updateRecord(DNSCache dnsCache, long now, DNSEntry rec)
dnsCache
- now
- rec
- public void advanceState()
public javax.jmdns.impl.constants.DNSState getState()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getNiceTextString()
ServiceInfo
getNiceTextString
in class ServiceInfo
public java.lang.String toString()
toString
in class java.lang.Object
public void addAnswers(DNSOutgoing out, int ttl, HostInfo localHost) throws java.io.IOException
java.io.IOException
public void setTask(java.util.TimerTask task)
public java.util.TimerTask getTask()
public void setText(byte[] text)
public byte[] getText()
public void setDns(JmDNSImpl dns)
public JmDNSImpl getDns()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |