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

List of all members.

Public Member Functions

int getPort ()
int getPriority ()
ServiceEvent getServiceEvent (JmDNSImpl dns)
ServiceInfo getServiceInfo (boolean persistent)
int getWeight ()
boolean isSingleValued ()
 Service (String name, DNSRecordClass recordClass, boolean unique, int ttl, int priority, int weight, int port, String server)

Protected Member Functions

void toByteArray (DataOutputStream dout) throws IOException
void toString (StringBuilder aLog)

Package Functions

DNSOutgoing addAnswer (JmDNSImpl dns, DNSIncoming in, InetAddress addr, int port, DNSOutgoing out) throws IOException
String getServer ()
boolean handleQuery (JmDNSImpl dns, long expirationTime)
boolean handleResponse (JmDNSImpl dns)
boolean sameValue (DNSRecord other)
void write (MessageOutputStream out)

Private Attributes

final int _port
final int _priority
final String _server
final int _weight

Static Private Attributes

static Logger logger1 = Logger.getLogger(Service.class.getName())

Detailed Description

Service record.

Definition at line 639 of file DNSRecord.java.


Constructor & Destructor Documentation

javax.jmdns.impl.DNSRecord.Service.Service ( String  name,
DNSRecordClass  recordClass,
boolean  unique,
int  ttl,
int  priority,
int  weight,
int  port,
String  server 
) [inline]

Definition at line 646 of file DNSRecord.java.


Member Function Documentation

DNSOutgoing javax.jmdns.impl.DNSRecord.Service.addAnswer ( JmDNSImpl  dns,
DNSIncoming  in,
InetAddress  addr,
int  port,
DNSOutgoing  out 
) throws IOException [inline, package, virtual]

Adds this as an answer to the provided outgoing datagram.

Implements javax.jmdns.impl.DNSRecord.

Definition at line 794 of file DNSRecord.java.

Returns:
the port

Definition at line 705 of file DNSRecord.java.

Returns:
the priority

Definition at line 691 of file DNSRecord.java.

String javax.jmdns.impl.DNSRecord.Service.getServer ( ) [inline, package]

Definition at line 684 of file DNSRecord.java.

Creates and return a service event for this record.

Parameters:
dnsDNS serviced by this event
Returns:
service event

Implements javax.jmdns.impl.DNSRecord.

Definition at line 819 of file DNSRecord.java.

ServiceInfo javax.jmdns.impl.DNSRecord.Service.getServiceInfo ( boolean  persistent) [inline, virtual]

Return a service information associated with that record if appropriate.

Parameters:
persistentif true ServiceListener.resolveService will be called whenever new new information is received.
Returns:
service information

Implements javax.jmdns.impl.DNSRecord.

Definition at line 810 of file DNSRecord.java.

Returns:
the weight

Definition at line 698 of file DNSRecord.java.

boolean javax.jmdns.impl.DNSRecord.Service.handleQuery ( JmDNSImpl  dns,
long  expirationTime 
) [inline, package, virtual]

Handles a query represented by this record.

Returns:
Returns true if a conflict with one of the services registered with JmDNS or with the hostname occured.

Implements javax.jmdns.impl.DNSRecord.

Definition at line 724 of file DNSRecord.java.

boolean javax.jmdns.impl.DNSRecord.Service.handleResponse ( JmDNSImpl  dns) [inline, package, virtual]

Handles a response represented by this record.

Returns:
Returns true if a conflict with one of the services registered with JmDNS or with the hostname occured.

Implements javax.jmdns.impl.DNSRecord.

Definition at line 774 of file DNSRecord.java.

Determine if a record can have multiple values in the cache.

Returns:
false if this record can have multiple values in the cache, true otherwise.

Implements javax.jmdns.impl.DNSRecord.

Definition at line 719 of file DNSRecord.java.

boolean javax.jmdns.impl.DNSRecord.Service.sameValue ( DNSRecord  other) [inline, package, virtual]

True if this record has the same value as some other record.

Implements javax.jmdns.impl.DNSRecord.

Definition at line 710 of file DNSRecord.java.

void javax.jmdns.impl.DNSRecord.Service.toByteArray ( DataOutputStream  dout) throws IOException [inline, protected]
Parameters:
dout
Exceptions:
IOException

Reimplemented from javax.jmdns.impl.DNSEntry.

Definition at line 672 of file DNSRecord.java.

void javax.jmdns.impl.DNSRecord.Service.toString ( StringBuilder  aLog) [inline, protected]
Parameters:
aLog

Reimplemented from javax.jmdns.impl.DNSRecord.

Definition at line 841 of file DNSRecord.java.

void javax.jmdns.impl.DNSRecord.Service.write ( MessageOutputStream  out) [inline, package, virtual]

Write this record into an outgoing message.

Implements javax.jmdns.impl.DNSRecord.

Definition at line 655 of file DNSRecord.java.


Member Data Documentation

Definition at line 643 of file DNSRecord.java.

Definition at line 641 of file DNSRecord.java.

Definition at line 644 of file DNSRecord.java.

Definition at line 642 of file DNSRecord.java.

Logger javax.jmdns.impl.DNSRecord.Service.logger1 = Logger.getLogger(Service.class.getName()) [static, private]

Definition at line 640 of file DNSRecord.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