Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.zeroconf.jmdns
Class DNSRecord.Service

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSEntry
      extended by net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSRecord
          extended by net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSRecord.Service
Enclosing class:
DNSRecord

static class DNSRecord.Service
extends DNSRecord

Service record.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSRecord
DNSRecord.Address, DNSRecord.Pointer, DNSRecord.Service, DNSRecord.Text
 
Field Summary
(package private)  int port
           
(package private)  int priority
           
(package private)  String server
           
(package private)  int weight
           
 
Fields inherited from class net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSRecord
ttl
 
Fields inherited from class net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSEntry
clazz, key, name, type, unique
 
Constructor Summary
DNSRecord.Service(String name, int type, int clazz, int ttl, int priority, int weight, int port, String server)
           
 
Method Summary
(package private)  DNSOutgoing addAnswer(JmDNS dns, DNSIncoming in, InetAddress addr, int port, DNSOutgoing out)
          Adds this as an answer to the provided outgoing datagram.
(package private)  boolean handleQuery(JmDNS dns, long expirationTime)
          Handles a query represented by this record.
(package private)  boolean handleResponse(JmDNS dns)
          Handles a responserepresented by this record.
(package private)  boolean sameValue(DNSRecord other)
          True if this record has the same value as some other record.
 String toString()
           
(package private)  void write(DNSOutgoing out)
          Write this record into an outgoing message.
 
Methods inherited from class net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSRecord
equals, getExpirationTime, getRemainingTTL, isExpired, isStale, resetTTL, sameAs, sameType, suppressedBy, suppressedBy, toString
 
Methods inherited from class net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSEntry
getClazz, getClazz, getName, getType, getType, hashCode, isUnique, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

priority

int priority

weight

int weight

port

int port

server

String server
Constructor Detail

DNSRecord.Service

DNSRecord.Service(String name,
                  int type,
                  int clazz,
                  int ttl,
                  int priority,
                  int weight,
                  int port,
                  String server)
Method Detail

write

void write(DNSOutgoing out)
     throws IOException
Description copied from class: DNSRecord
Write this record into an outgoing message.

Specified by:
write in class DNSRecord
Throws:
IOException

sameValue

boolean sameValue(DNSRecord other)
Description copied from class: DNSRecord
True if this record has the same value as some other record.

Specified by:
sameValue in class DNSRecord

handleQuery

boolean handleQuery(JmDNS dns,
                    long expirationTime)
Description copied from class: DNSRecord
Handles a query represented by this record.

Specified by:
handleQuery in class DNSRecord
Returns:
Returns true if a conflict with one of the services registered with JmDNS or with the hostname occured.

handleResponse

boolean handleResponse(JmDNS dns)
Description copied from class: DNSRecord
Handles a responserepresented by this record.

Specified by:
handleResponse in class DNSRecord
Returns:
Returns true if a conflict with one of the services registered with JmDNS or with the hostname occured.

addAnswer

DNSOutgoing addAnswer(JmDNS dns,
                      DNSIncoming in,
                      InetAddress addr,
                      int port,
                      DNSOutgoing out)
                throws IOException
Description copied from class: DNSRecord
Adds this as an answer to the provided outgoing datagram.

Specified by:
addAnswer in class DNSRecord
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.