|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.jmdns.ServiceInfo
public abstract class ServiceInfo
Field Summary | |
---|---|
static byte[] |
NO_VALUE
|
Constructor Summary | |
---|---|
ServiceInfo()
|
Method Summary | |
---|---|
static ServiceInfo |
create(java.lang.String type,
java.lang.String name,
int port,
int weight,
int priority,
byte[] text)
Construct a service description for registrating with JmDNS. |
static ServiceInfo |
create(java.lang.String type,
java.lang.String name,
int port,
int weight,
int priority,
java.util.Map<java.lang.String,?> props)
Construct a service description for registrating with JmDNS. |
static ServiceInfo |
create(java.lang.String type,
java.lang.String name,
int port,
int weight,
int priority,
java.lang.String text)
Construct a service description for registrating with JmDNS. |
static ServiceInfo |
create(java.lang.String type,
java.lang.String name,
int port,
java.lang.String text)
Construct a service description for registrating with JmDNS. |
abstract java.net.InetAddress |
getAddress()
Get the host address of the service. |
abstract java.lang.String |
getHostAddress()
Get the host address of the service (ie X.X.X.X). |
abstract java.net.InetAddress |
getInetAddress()
Get the InetAddress of the service. |
abstract java.lang.String |
getName()
Unqualified service instance name, such as foobar . |
abstract java.lang.String |
getNiceTextString()
Returns a description of the service info suitable for printing. |
abstract int |
getPort()
Get the port for the service. |
abstract int |
getPriority()
Get the priority of the service. |
abstract byte[] |
getPropertyBytes(java.lang.String name)
Get a property of the service. |
abstract java.util.Enumeration<java.lang.String> |
getPropertyNames()
Enumeration of the property names. |
abstract java.lang.String |
getPropertyString(java.lang.String name)
Get a property of the service. |
abstract java.lang.String |
getQualifiedName()
Fully qualified service name, such as foobar._http._tcp.local. . |
abstract java.lang.String |
getServer()
Get the name of the server. |
abstract byte[] |
getTextBytes()
Get the text for the service as raw bytes. |
abstract java.lang.String |
getTextString()
Get the text for the service. |
abstract java.lang.String |
getType()
Fully qualified service type name, such as _http._tcp.local. |
abstract java.lang.String |
getURL()
Get the URL for this service. |
abstract java.lang.String |
getURL(java.lang.String protocol)
Get the URL for this service. |
abstract int |
getWeight()
Get the weight of the service. |
boolean |
hasData()
Returns true if the service info is filled with data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte[] NO_VALUE
Constructor Detail |
---|
public ServiceInfo()
Method Detail |
---|
public static ServiceInfo create(java.lang.String type, java.lang.String name, int port, java.lang.String text)
type
- fully qualified service type name, such as _http._tcp.local.
.name
- unqualified service instance name, such as foobar
port
- the local port on which the service runstext
- string describing the service
public static ServiceInfo create(java.lang.String type, java.lang.String name, int port, int weight, int priority, java.lang.String text)
type
- fully qualified service type name, such as _http._tcp.local.
.name
- unqualified service instance name, such as foobar
port
- the local port on which the service runsweight
- weight of the servicepriority
- priority of the servicetext
- string describing the service
public static ServiceInfo create(java.lang.String type, java.lang.String name, int port, int weight, int priority, java.util.Map<java.lang.String,?> props)
type
- fully qualified service type name, such as _http._tcp.local.
.name
- unqualified service instance name, such as foobar
port
- the local port on which the service runsweight
- weight of the servicepriority
- priority of the serviceprops
- properties describing the service
public static ServiceInfo create(java.lang.String type, java.lang.String name, int port, int weight, int priority, byte[] text)
type
- fully qualified service type name, such as _http._tcp.local.
.name
- unqualified service instance name, such as foobar
port
- the local port on which the service runsweight
- weight of the servicepriority
- priority of the servicetext
- bytes describing the service
public boolean hasData()
true
if the service info has data, false
otherwise.public abstract java.lang.String getType()
_http._tcp.local.
public abstract java.lang.String getName()
foobar
.
public abstract java.lang.String getQualifiedName()
foobar._http._tcp.local.
.
public abstract java.lang.String getServer()
public abstract java.lang.String getHostAddress()
public abstract java.net.InetAddress getAddress()
public abstract java.net.InetAddress getInetAddress()
public abstract int getPort()
public abstract int getPriority()
public abstract int getWeight()
public abstract byte[] getTextBytes()
public abstract java.lang.String getTextString()
public abstract java.lang.String getURL()
public abstract java.lang.String getURL(java.lang.String protocol)
protocol
- requested protocol
public abstract byte[] getPropertyBytes(java.lang.String name)
name
- property name
public abstract java.lang.String getPropertyString(java.lang.String name)
name
- property name
public abstract java.util.Enumeration<java.lang.String> getPropertyNames()
public abstract java.lang.String getNiceTextString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |