public abstract class ServiceInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
NO_VALUE |
| Constructor and Description |
|---|
ServiceInfo() |
| Modifier and Type | Method and Description |
|---|---|
static ServiceInfo |
create(String type,
String name,
int port,
int weight,
int priority,
byte[] text)
Construct a service description for registrating with JmDNS.
|
static ServiceInfo |
create(String type,
String name,
int port,
int weight,
int priority,
Hashtable props)
Construct a service description for registrating with JmDNS.
|
static ServiceInfo |
create(String type,
String name,
int port,
int weight,
int priority,
String text)
Construct a service description for registrating with JmDNS.
|
static ServiceInfo |
create(String type,
String name,
int port,
String text)
Construct a service description for registrating with JmDNS.
|
abstract InetAddress |
getAddress() |
abstract String |
getDomain() |
abstract String |
getHostAddress()
Get the host address of the service (ie X.X.X.X).
|
abstract InetAddress |
getInetAddress()
Get the InetAddress of the service.
|
abstract String |
getName()
Unqualified service instance name, such as
foobar . |
abstract String |
getNiceTextString() |
abstract int |
getPort()
Get the port for the service.
|
abstract int |
getPriority()
Get the priority of the service.
|
abstract byte[] |
getPropertyBytes(String name)
Get a property of the service.
|
abstract Enumeration |
getPropertyNames()
Enumeration of the property names.
|
abstract String |
getPropertyString(String name)
Get a property of the service.
|
abstract String |
getProtocol() |
abstract String |
getQualifiedName()
Fully qualified service name, such as
foobar._http._tcp.local. . |
abstract String |
getServer()
Get the name of the server.
|
abstract byte[] |
getTextBytes()
Get the text for the serivce as raw bytes.
|
abstract String |
getTextString()
Get the text for the service.
|
abstract String |
getType()
Fully qualified service type name, such as
_http._tcp.local. . |
abstract String |
getURL()
Get the URL for this service.
|
abstract String |
getURL(String protocol)
Get the URL for this service.
|
abstract int |
getWeight()
Get the weight of the service.
|
public static ServiceInfo create(String type, String name, int port, String text)
type - fully qualified service type name, such as _http._tcp.local..name - unqualified service instance name, such as foobarport - the local port on which the service runstext - string describing the servicepublic static ServiceInfo create(String type, String name, int port, int weight, int priority, String text)
type - fully qualified service type name, such as _http._tcp.local..name - unqualified service instance name, such as foobarport - the local port on which the service runsweight - weight of the servicepriority - priority of the servicetext - string describing the servicepublic static ServiceInfo create(String type, String name, int port, int weight, int priority, Hashtable props)
type - fully qualified service type name, such as _http._tcp.local..name - unqualified service instance name, such as foobarport - the local port on which the service runsweight - weight of the servicepriority - priority of the serviceprops - properties describing the servicepublic static ServiceInfo create(String type, 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 foobarport - the local port on which the service runsweight - weight of the servicepriority - priority of the servicetext - bytes describing the servicepublic abstract String getType()
_http._tcp.local. .public abstract String getName()
foobar .public abstract String getQualifiedName()
foobar._http._tcp.local. .public abstract String getServer()
public abstract String getHostAddress()
public abstract InetAddress getAddress()
public abstract InetAddress getInetAddress()
public abstract int getPort()
public abstract int getPriority()
public abstract int getWeight()
public abstract byte[] getTextBytes()
public abstract String getTextString()
public abstract String getURL()
public abstract String getURL(String protocol)
public abstract byte[] getPropertyBytes(String name)
public abstract String getPropertyString(String name)
public abstract Enumeration getPropertyNames()
public abstract String getNiceTextString()
public abstract String getProtocol()
public abstract String getDomain()
Copyright © 2020 Eclipse Foundation. All rights reserved.