Classes | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Package Functions | Static Package Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
javax.jmdns.impl.ServiceInfoImpl Class Reference
Inheritance diagram for javax.jmdns.impl.ServiceInfoImpl:
Inheritance graph
[legend]

List of all members.

Classes

interface  Delegate
class  ServiceInfoState

Public Member Functions

boolean advanceState (DNSTask task)
Collection< DNSRecordanswers (boolean unique, int ttl, HostInfo localHost)
void associateWithTask (DNSTask task, DNSState state)
boolean cancelState ()
ServiceInfoImpl clone ()
boolean closeState ()
boolean equals (Object obj)
InetAddress getAddress ()
String getApplication ()
JmDNSImpl getDns ()
String getDomain ()
String getHostAddress ()
String[] getHostAddresses ()
Inet4Address getInet4Address ()
Inet4Address[] getInet4Addresses ()
Inet6Address getInet6Address ()
Inet6Address[] getInet6Addresses ()
InetAddress getInetAddress ()
InetAddress[] getInetAddresses ()
String getKey ()
String getName ()
String getNiceTextString ()
int getPort ()
int getPriority ()
synchronized byte[] getPropertyBytes (String name)
Enumeration< String > getPropertyNames ()
synchronized String getPropertyString (String name)
String getProtocol ()
String getQualifiedName ()
Map< Fields, String > getQualifiedNameMap ()
String getServer ()
String getSubtype ()
byte[] getTextBytes ()
String getTextString ()
String getType ()
String getTypeWithSubtype ()
String getURL ()
String getURL (String protocol)
String[] getURLs ()
String[] getURLs (String protocol)
int getWeight ()
synchronized boolean hasData ()
int hashCode ()
boolean isAnnounced ()
boolean isAnnouncing ()
boolean isAssociatedWithTask (DNSTask task, DNSState state)
boolean isCanceled ()
boolean isCanceling ()
boolean isClosed ()
boolean isClosing ()
boolean isPersistent ()
boolean isProbing ()
boolean needTextAnnouncing ()
boolean recoverState ()
void removeAssociationWithTask (DNSTask task)
boolean revertState ()
 ServiceInfoImpl (String type, String name, String subtype, int port, int weight, int priority, boolean persistent, String text)
 ServiceInfoImpl (String type, String name, String subtype, int port, int weight, int priority, boolean persistent, Map< String,?> props)
 ServiceInfoImpl (String type, String name, String subtype, int port, int weight, int priority, boolean persistent, byte text[])
 ServiceInfoImpl (Map< Fields, String > qualifiedNameMap, int port, int weight, int priority, boolean persistent, Map< String,?> props)
void setDns (JmDNSImpl dns)
void setNeedTextAnnouncing (boolean needTextAnnouncing)
void setText (byte[] text) throws IllegalStateException
void setText (Map< String,?> props) throws IllegalStateException
String toString ()
void updateRecord (DNSCache dnsCache, long now, DNSEntry rec)
boolean waitForAnnounced (long timeout)
boolean waitForCanceled (long timeout)

Static Public Member Functions

static Map< Fields, String > decodeQualifiedNameMap (String type, String name, String subtype)
static Map< Fields, String > decodeQualifiedNameMapForType (String type)

Static Protected Member Functions

static Map< Fields, String > checkQualifiedNameMap (Map< Fields, String > qualifiedNameMap)

Package Functions

void _setText (byte[] text)
void addAddress (Inet4Address addr)
void addAddress (Inet6Address addr)
Delegate getDelegate ()
synchronized Map< String, byte[]> getProperties ()
String readUTF (byte data[], int off, int len)
 ServiceInfoImpl (Map< Fields, String > qualifiedNameMap, int port, int weight, int priority, boolean persistent, String text)
 ServiceInfoImpl (Map< Fields, String > qualifiedNameMap, int port, int weight, int priority, boolean persistent, byte text[])
 ServiceInfoImpl (ServiceInfo info)
void setDelegate (Delegate delegate)
void setName (String name)
void setServer (String server)

Static Package Functions

static void writeUTF (OutputStream out, String str) throws IOException

Private Member Functions

final boolean hasInetAddress ()

Static Private Member Functions

static String removeSeparators (String name)
static byte[] textFromProperties (Map< String,?> props)

Private Attributes

String _application
Delegate _delegate
String _domain
final Set< Inet4Address > _ipv4Addresses
final Set< Inet6Address > _ipv6Addresses
transient String _key
String _name
boolean _needTextAnnouncing
boolean _persistent
int _port
int _priority
Map< String, byte[]> _props
String _protocol
String _server
final ServiceInfoState _state
String _subtype
byte _text []
int _weight

Static Private Attributes

static Logger logger = Logger.getLogger(ServiceInfoImpl.class.getName())

Detailed Description

JmDNS service information.

Author:
Arthur van Hoff, Jeff Sonstein, Werner Randelshofer

Definition at line 42 of file ServiceInfoImpl.java.


Constructor & Destructor Documentation

javax.jmdns.impl.ServiceInfoImpl.ServiceInfoImpl ( String  type,
String  name,
String  subtype,
int  port,
int  weight,
int  priority,
boolean  persistent,
String  text 
) [inline]
Parameters:
type
name
subtype
port
weight
priority
persistent
text
See also:
javax.jmdns.ServiceInfo::create(String, String, int, int, int, String)

Definition at line 127 of file ServiceInfoImpl.java.

javax.jmdns.impl.ServiceInfoImpl.ServiceInfoImpl ( String  type,
String  name,
String  subtype,
int  port,
int  weight,
int  priority,
boolean  persistent,
Map< String,?>  props 
) [inline]
Parameters:
type
name
subtype
port
weight
priority
persistent
props
See also:
javax.jmdns.ServiceInfo::create(String, String, int, int, int, Map)

Definition at line 150 of file ServiceInfoImpl.java.

javax.jmdns.impl.ServiceInfoImpl.ServiceInfoImpl ( String  type,
String  name,
String  subtype,
int  port,
int  weight,
int  priority,
boolean  persistent,
byte  text[] 
) [inline]
Parameters:
type
name
subtype
port
weight
priority
persistent
text
See also:
javax.jmdns.ServiceInfo::create(String, String, int, int, int, byte[])

Definition at line 165 of file ServiceInfoImpl.java.

javax.jmdns.impl.ServiceInfoImpl.ServiceInfoImpl ( Map< Fields, String >  qualifiedNameMap,
int  port,
int  weight,
int  priority,
boolean  persistent,
Map< String,?>  props 
) [inline]

Definition at line 169 of file ServiceInfoImpl.java.

javax.jmdns.impl.ServiceInfoImpl.ServiceInfoImpl ( Map< Fields, String >  qualifiedNameMap,
int  port,
int  weight,
int  priority,
boolean  persistent,
String  text 
) [inline, package]

Definition at line 173 of file ServiceInfoImpl.java.

javax.jmdns.impl.ServiceInfoImpl.ServiceInfoImpl ( Map< Fields, String >  qualifiedNameMap,
int  port,
int  weight,
int  priority,
boolean  persistent,
byte  text[] 
) [inline, package]

Definition at line 185 of file ServiceInfoImpl.java.

During recovery we need to duplicate service info to reregister them

Parameters:
info

Definition at line 210 of file ServiceInfoImpl.java.


Member Function Documentation

void javax.jmdns.impl.ServiceInfoImpl._setText ( byte[]  text) [inline, package]

This is used internally by the framework

Parameters:
text

Definition at line 1284 of file ServiceInfoImpl.java.

void javax.jmdns.impl.ServiceInfoImpl.addAddress ( Inet4Address  addr) [inline, package]
Parameters:
addrthe addr to add

Definition at line 490 of file ServiceInfoImpl.java.

void javax.jmdns.impl.ServiceInfoImpl.addAddress ( Inet6Address  addr) [inline, package]
Parameters:
addrthe addr to add

Definition at line 498 of file ServiceInfoImpl.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Parameters:
taskassociated task
Returns:
true</code if the state was changed by this thread, false otherwise.
See also:
DNSState::advance()

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1015 of file ServiceInfoImpl.java.

Collection<DNSRecord> javax.jmdns.impl.ServiceInfoImpl.answers ( boolean  unique,
int  ttl,
HostInfo  localHost 
) [inline]

Definition at line 1248 of file ServiceInfoImpl.java.

Sets the task associated with this Object.

Parameters:
taskassociated task
statestate of the task

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1063 of file ServiceInfoImpl.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
true</code if the state was changed by this thread, false otherwise.

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1031 of file ServiceInfoImpl.java.

static Map<Fields, String> javax.jmdns.impl.ServiceInfoImpl.checkQualifiedNameMap ( Map< Fields, String >  qualifiedNameMap) [inline, static, protected]

Definition at line 318 of file ServiceInfoImpl.java.

Reimplemented from javax.jmdns.ServiceInfo.

Definition at line 1190 of file ServiceInfoImpl.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
true</code if the state was changed by this thread, false otherwise.

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1039 of file ServiceInfoImpl.java.

static Map<Fields, String> javax.jmdns.impl.ServiceInfoImpl.decodeQualifiedNameMap ( String  type,
String  name,
String  subtype 
) [inline, static]

Definition at line 236 of file ServiceInfoImpl.java.

static Map<Fields, String> javax.jmdns.impl.ServiceInfoImpl.decodeQualifiedNameMapForType ( String  type) [inline, static]

Definition at line 245 of file ServiceInfoImpl.java.

boolean javax.jmdns.impl.ServiceInfoImpl.equals ( Object  obj) [inline]

Definition at line 1159 of file ServiceInfoImpl.java.

InetAddress javax.jmdns.impl.ServiceInfoImpl.getAddress ( ) [inline, virtual]

Get the host address of the service.

Returns:
host Internet address
Deprecated:
since 3.1.8
See also:
getInetAddresses()

Implements javax.jmdns.ServiceInfo.

Definition at line 507 of file ServiceInfoImpl.java.

Returns the application of the service info suitable for printing.

Returns:
service application

Implements javax.jmdns.ServiceInfo.

Definition at line 710 of file ServiceInfoImpl.java.

Returns:
the delegate

Definition at line 1370 of file ServiceInfoImpl.java.

Returns the DNS associated with this object.

Returns:
DNS resolver

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1337 of file ServiceInfoImpl.java.

String javax.jmdns.impl.ServiceInfoImpl.getDomain ( ) [inline, virtual]

Returns the domain of the service info suitable for printing.

Returns:
service domain

Implements javax.jmdns.ServiceInfo.

Definition at line 718 of file ServiceInfoImpl.java.

Returns the host IP address string in textual presentation.
Note: This can be either an IPv4 or an IPv6 representation.

Returns:
the host raw IP address in a string format.
Deprecated:
since 3.2.3
See also:
getHostAddresses()

Implements javax.jmdns.ServiceInfo.

Definition at line 464 of file ServiceInfoImpl.java.

String [] javax.jmdns.impl.ServiceInfoImpl.getHostAddresses ( ) [inline, virtual]

Returns the host IP addresses string in textual presentation.

Returns:
list of host raw IP address in a string format.

Implements javax.jmdns.ServiceInfo.

Definition at line 473 of file ServiceInfoImpl.java.

Inet4Address javax.jmdns.impl.ServiceInfoImpl.getInet4Address ( ) [inline, virtual]

Get the IPv4 InetAddress of the service.
Note: This return null if the service IPv4 address cannot be resolved.

Returns:
Internet address
Deprecated:
since 3.2.3
See also:
getInet4Addresses()

Implements javax.jmdns.ServiceInfo.

Definition at line 526 of file ServiceInfoImpl.java.

Inet4Address [] javax.jmdns.impl.ServiceInfoImpl.getInet4Addresses ( ) [inline, virtual]

Returns a list of all IPv4 InetAddresses that can be used for this service.

In a multi-homed environment service info can be associated with more than one address.

Returns:
list of InetAddress objects

Implements javax.jmdns.ServiceInfo.

Definition at line 558 of file ServiceInfoImpl.java.

Inet6Address javax.jmdns.impl.ServiceInfoImpl.getInet6Address ( ) [inline, virtual]

Get the IPv6 InetAddress of the service.
Note: This return null if the service IPv6 address cannot be resolved.

Returns:
Internet address
Deprecated:
since 3.2.3
See also:
getInet6Addresses()

Implements javax.jmdns.ServiceInfo.

Definition at line 536 of file ServiceInfoImpl.java.

Inet6Address [] javax.jmdns.impl.ServiceInfoImpl.getInet6Addresses ( ) [inline, virtual]

Returns a list of all IPv6 InetAddresses that can be used for this service.

In a multi-homed environment service info can be associated with more than one address.

Returns:
list of InetAddress objects

Implements javax.jmdns.ServiceInfo.

Definition at line 567 of file ServiceInfoImpl.java.

InetAddress javax.jmdns.impl.ServiceInfoImpl.getInetAddress ( ) [inline, virtual]

Get the InetAddress of the service. This will return the IPv4 if it exist, otherwise it return the IPv6 if set.
Note: This return null if the service IP address cannot be resolved.

Returns:
Internet address
Deprecated:
since 3.2.3
See also:
getInetAddresses()

Implements javax.jmdns.ServiceInfo.

Definition at line 516 of file ServiceInfoImpl.java.

InetAddress [] javax.jmdns.impl.ServiceInfoImpl.getInetAddresses ( ) [inline, virtual]

Returns a list of all InetAddresses that can be used for this service.

In a multi-homed environment service info can be associated with more than one address.

Returns:
list of InetAddress objects

Implements javax.jmdns.ServiceInfo.

Definition at line 546 of file ServiceInfoImpl.java.

String javax.jmdns.impl.ServiceInfoImpl.getKey ( ) [inline, virtual]

The key is used to retrieve service info in hash tables.
The key is the lower case qualified name.

Returns:
the key

Implements javax.jmdns.ServiceInfo.

Definition at line 410 of file ServiceInfoImpl.java.

String javax.jmdns.impl.ServiceInfoImpl.getName ( ) [inline, virtual]

Unqualified service instance name, such as foobar .

Returns:
service name

Implements javax.jmdns.ServiceInfo.

Definition at line 402 of file ServiceInfoImpl.java.

Returns a description of the service info suitable for printing.

Returns:
service info description

Implements javax.jmdns.ServiceInfo.

Definition at line 1167 of file ServiceInfoImpl.java.

int javax.jmdns.impl.ServiceInfoImpl.getPort ( ) [inline, virtual]
See also:
javax.jmdns.ServiceInfo::getPort()

Implements javax.jmdns.ServiceInfo.

Definition at line 575 of file ServiceInfoImpl.java.

synchronized Map<String, byte[]> javax.jmdns.impl.ServiceInfoImpl.getProperties ( ) [inline, package]

Definition at line 821 of file ServiceInfoImpl.java.

synchronized byte [] javax.jmdns.impl.ServiceInfoImpl.getPropertyBytes ( String  name) [inline]

Definition at line 677 of file ServiceInfoImpl.java.

Enumeration<String> javax.jmdns.impl.ServiceInfoImpl.getPropertyNames ( ) [inline, virtual]

Enumeration of the property names.

Returns:
property name enumeration

Implements javax.jmdns.ServiceInfo.

Definition at line 700 of file ServiceInfoImpl.java.

synchronized String javax.jmdns.impl.ServiceInfoImpl.getPropertyString ( String  name) [inline]

Definition at line 685 of file ServiceInfoImpl.java.

String javax.jmdns.impl.ServiceInfoImpl.getProtocol ( ) [inline, virtual]

Returns the protocol of the service info suitable for printing.

Returns:
service protocol

Implements javax.jmdns.ServiceInfo.

Definition at line 726 of file ServiceInfoImpl.java.

Fully qualified service name, such as foobar._http._tcp.local. .

Returns:
qualified service name

Implements javax.jmdns.ServiceInfo.

Definition at line 432 of file ServiceInfoImpl.java.

Returns a dictionary of the fully qualified name component of this service.

Returns:
dictionary of the fully qualified name components

Implements javax.jmdns.ServiceInfo.

Definition at line 742 of file ServiceInfoImpl.java.

String javax.jmdns.impl.ServiceInfoImpl.getServer ( ) [inline, virtual]
String javax.jmdns.impl.ServiceInfoImpl.getSubtype ( ) [inline, virtual]

Returns the sub type of the service info suitable for printing.

Returns:
service sub type

Implements javax.jmdns.ServiceInfo.

Definition at line 734 of file ServiceInfoImpl.java.

byte [] javax.jmdns.impl.ServiceInfoImpl.getTextBytes ( ) [inline, virtual]
String javax.jmdns.impl.ServiceInfoImpl.getTextString ( ) [inline, virtual]

Get the text for the service. This will interpret the text bytes as a UTF8 encoded string. Will return null if the bytes are not a valid UTF8 encoded string.
Note: Do not use. This method make the assumption that the TXT record is one string. This is false. The TXT record is a series of key value pairs.

Returns:
service text
See also:
getPropertyNames()
#getPropertyBytes(String)
#getPropertyString(String)
Deprecated:
since 3.1.7

Implements javax.jmdns.ServiceInfo.

Definition at line 608 of file ServiceInfoImpl.java.

String javax.jmdns.impl.ServiceInfoImpl.getType ( ) [inline, virtual]

Fully qualified service type name, such as _http._tcp.local.

Returns:
service type name

Implements javax.jmdns.ServiceInfo.

Definition at line 382 of file ServiceInfoImpl.java.

Fully qualified service type name with the subtype if appropriate, such as _printer._sub._http._tcp.local.

Returns:
service type name

Implements javax.jmdns.ServiceInfo.

Definition at line 393 of file ServiceInfoImpl.java.

String javax.jmdns.impl.ServiceInfoImpl.getURL ( ) [inline, virtual]

Get the URL for this service. An http URL is created by combining the address, port, and path properties.

Returns:
service URL
Deprecated:
since 3.2.3
See also:
getURLs()

Implements javax.jmdns.ServiceInfo.

Definition at line 626 of file ServiceInfoImpl.java.

String javax.jmdns.impl.ServiceInfoImpl.getURL ( String  protocol) [inline, virtual]

Get the URL for this service. An URL is created by combining the protocol, address, port, and path properties.

Parameters:
protocolrequested protocol
Returns:
service URL
Deprecated:
since 3.2.3
See also:
getURLs()

Implements javax.jmdns.ServiceInfo.

Definition at line 645 of file ServiceInfoImpl.java.

String [] javax.jmdns.impl.ServiceInfoImpl.getURLs ( ) [inline, virtual]

Get the list of URL for this service. An http URL is created by combining the address, port, and path properties.

Returns:
list of service URL

Implements javax.jmdns.ServiceInfo.

Definition at line 635 of file ServiceInfoImpl.java.

String [] javax.jmdns.impl.ServiceInfoImpl.getURLs ( String  protocol) [inline, virtual]

Get the list of URL for this service. An URL is created by combining the protocol, address, port, and path properties.

Parameters:
protocolrequested protocol
Returns:
list of service URL

Implements javax.jmdns.ServiceInfo.

Definition at line 655 of file ServiceInfoImpl.java.

int javax.jmdns.impl.ServiceInfoImpl.getWeight ( ) [inline, virtual]
synchronized boolean javax.jmdns.impl.ServiceInfoImpl.hasData ( ) [inline, virtual]

Returns true if the service info is filled with data.

Returns:
true if the service info has data, false otherwise.

Implements javax.jmdns.ServiceInfo.

Definition at line 1000 of file ServiceInfoImpl.java.

Definition at line 1151 of file ServiceInfoImpl.java.

final boolean javax.jmdns.impl.ServiceInfoImpl.hasInetAddress ( ) [inline, private]

Definition at line 1005 of file ServiceInfoImpl.java.

Returns true, if this is an announced state.

Returns:
true if announced state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1095 of file ServiceInfoImpl.java.

Returns true, if this is an announcing state.

Returns:
true if announcing state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1087 of file ServiceInfoImpl.java.

Checks if this object is associated with the task and in the same state.

Parameters:
taskassociated task
statestate of the task
Returns:
true is the task is associated with this object, false otherwise.

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1071 of file ServiceInfoImpl.java.

Returns true, if this is a canceled state.

Returns:
true if canceled state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1111 of file ServiceInfoImpl.java.

Returns true, if this is a canceling state.

Returns:
true if canceling state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1103 of file ServiceInfoImpl.java.

Returns true, if this is a closed state.

Returns:
true if closed state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1127 of file ServiceInfoImpl.java.

Returns true, if this is a closing state.

Returns:
true if closing state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1119 of file ServiceInfoImpl.java.

boolean javax.jmdns.impl.ServiceInfoImpl.isPersistent ( ) [inline, virtual]

Returns true if ServiceListener.resolveService will be called whenever new new information is received.

Returns:
the persistent

Implements javax.jmdns.ServiceInfo.

Definition at line 1345 of file ServiceInfoImpl.java.

Returns true, if this is a probing state.

Returns:
true if probing state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1079 of file ServiceInfoImpl.java.

Returns:
the needTextAnnouncing

Definition at line 1363 of file ServiceInfoImpl.java.

String javax.jmdns.impl.ServiceInfoImpl.readUTF ( byte  data[],
int  off,
int  len 
) [inline, package]

Read data bytes as a UTF stream.

Definition at line 777 of file ServiceInfoImpl.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
true</code if the state was changed by this thread, false otherwise.

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1047 of file ServiceInfoImpl.java.

Remove the association of the task with this Object.

Parameters:
taskassociated task

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1055 of file ServiceInfoImpl.java.

static String javax.jmdns.impl.ServiceInfoImpl.removeSeparators ( String  name) [inline, static, private]

Definition at line 361 of file ServiceInfoImpl.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
true</code if the state was changed by this thread, false otherwise.
See also:
DNSState::revert()

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1023 of file ServiceInfoImpl.java.

void javax.jmdns.impl.ServiceInfoImpl.setDelegate ( Delegate  delegate) [inline, package]
Parameters:
delegatethe delegate to set

Definition at line 1378 of file ServiceInfoImpl.java.

Definition at line 1329 of file ServiceInfoImpl.java.

void javax.jmdns.impl.ServiceInfoImpl.setName ( String  name) [inline, package]

Sets the service instance name.

Parameters:
nameunqualified service instance name, such as foobar

Definition at line 423 of file ServiceInfoImpl.java.

void javax.jmdns.impl.ServiceInfoImpl.setNeedTextAnnouncing ( boolean  needTextAnnouncing) [inline]
Parameters:
needTextAnnouncingthe needTextAnnouncing to set

Definition at line 1353 of file ServiceInfoImpl.java.

void javax.jmdns.impl.ServiceInfoImpl.setServer ( String  server) [inline, package]
Parameters:
serverthe server to set

Definition at line 455 of file ServiceInfoImpl.java.

void javax.jmdns.impl.ServiceInfoImpl.setText ( byte[]  text) throws IllegalStateException [inline]

Definition at line 1263 of file ServiceInfoImpl.java.

void javax.jmdns.impl.ServiceInfoImpl.setText ( Map< String,?>  props) throws IllegalStateException [inline]

Definition at line 1275 of file ServiceInfoImpl.java.

static byte [] javax.jmdns.impl.ServiceInfoImpl.textFromProperties ( Map< String,?>  props) [inline, static, private]

Definition at line 1289 of file ServiceInfoImpl.java.

Definition at line 1207 of file ServiceInfoImpl.java.

void javax.jmdns.impl.ServiceInfoImpl.updateRecord ( DNSCache  dnsCache,
long  now,
DNSEntry  rec 
) [inline]

JmDNS callback to update a DNS record.

Parameters:
dnsCache
now
rec

Implements javax.jmdns.impl.DNSListener.

Definition at line 871 of file ServiceInfoImpl.java.

boolean javax.jmdns.impl.ServiceInfoImpl.waitForAnnounced ( long  timeout) [inline]

Waits for the object to be announced.

Parameters:
timeoutthe maximum time to wait in milliseconds.
Returns:
true if the object is announced, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1135 of file ServiceInfoImpl.java.

boolean javax.jmdns.impl.ServiceInfoImpl.waitForCanceled ( long  timeout) [inline]

Waits for the object to be canceled.

Parameters:
timeoutthe maximum time to wait in milliseconds.
Returns:
true if the object is canceled, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 1143 of file ServiceInfoImpl.java.

static void javax.jmdns.impl.ServiceInfoImpl.writeUTF ( OutputStream  out,
String  str 
) throws IOException [inline, static, package]

Write a UTF string with a length to a stream.

Definition at line 756 of file ServiceInfoImpl.java.


Member Data Documentation

Definition at line 47 of file ServiceInfoImpl.java.

Definition at line 66 of file ServiceInfoImpl.java.

Definition at line 45 of file ServiceInfoImpl.java.

final Set<Inet4Address> javax.jmdns.impl.ServiceInfoImpl._ipv4Addresses [private]

Definition at line 56 of file ServiceInfoImpl.java.

final Set<Inet6Address> javax.jmdns.impl.ServiceInfoImpl._ipv6Addresses [private]

Definition at line 57 of file ServiceInfoImpl.java.

transient String javax.jmdns.impl.ServiceInfoImpl._key [private]

Definition at line 59 of file ServiceInfoImpl.java.

Definition at line 48 of file ServiceInfoImpl.java.

Definition at line 62 of file ServiceInfoImpl.java.

Definition at line 61 of file ServiceInfoImpl.java.

Definition at line 51 of file ServiceInfoImpl.java.

Definition at line 53 of file ServiceInfoImpl.java.

Map<String, byte[]> javax.jmdns.impl.ServiceInfoImpl._props [private]

Definition at line 55 of file ServiceInfoImpl.java.

Definition at line 46 of file ServiceInfoImpl.java.

Definition at line 50 of file ServiceInfoImpl.java.

Definition at line 64 of file ServiceInfoImpl.java.

Definition at line 49 of file ServiceInfoImpl.java.

Definition at line 54 of file ServiceInfoImpl.java.

Definition at line 52 of file ServiceInfoImpl.java.

Logger javax.jmdns.impl.ServiceInfoImpl.logger = Logger.getLogger(ServiceInfoImpl.class.getName()) [static, private]

Definition at line 43 of file ServiceInfoImpl.java.


The documentation for this class was generated from the following file:


zeroconf_jmdns_suite
Author(s): Daniel Stonier
autogenerated on Thu Aug 27 2015 15:50:27