JmDNS 3.4.1

javax.jmdns.impl
Class DNSRecord.Service

java.lang.Object
  extended by javax.jmdns.impl.DNSEntry
      extended by javax.jmdns.impl.DNSRecord
          extended by javax.jmdns.impl.DNSRecord.Service
Enclosing class:
DNSRecord

public static class DNSRecord.Service
extends DNSRecord

Service record.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.jmdns.impl.DNSRecord
DNSRecord.Address, DNSRecord.HostInformation, DNSRecord.IPv4Address, DNSRecord.IPv6Address, DNSRecord.Pointer, DNSRecord.Service, DNSRecord.Text
 
Field Summary
 
Fields inherited from class javax.jmdns.impl.DNSRecord
EMPTY_TXT
 
Constructor Summary
DNSRecord.Service(String name, DNSRecordClass recordClass, boolean unique, int ttl, int priority, int weight, int port, String server)
           
 
Method Summary
 int getPort()
           
 int getPriority()
           
 ServiceEvent getServiceEvent(JmDNSImpl dns)
          Creates and return a service event for this record.
 ServiceInfo getServiceInfo(boolean persistent)
          Return a service information associated with that record if appropriate.
 int getWeight()
           
 boolean isSingleValued()
          Determine if a record can have multiple values in the cache.
protected  void toByteArray(DataOutputStream dout)
           
protected  void toString(StringBuilder aLog)
           
 
Methods inherited from class javax.jmdns.impl.DNSRecord
equals, getRecordSource, getServiceInfo, getTTL, isExpired, isStale, setRecordSource, setTTL
 
Methods inherited from class javax.jmdns.impl.DNSEntry
compareTo, getKey, getName, getQualifiedNameMap, getRecordClass, getRecordType, getSubtype, getType, hashCode, isDomainDiscoveryQuery, isReverseLookup, isSameEntry, isSameRecordClass, isSameType, isServicesDiscoveryMetaQuery, isUnique, isV4ReverseLookup, isV6ReverseLookup, sameSubtype, toByteArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DNSRecord.Service

public DNSRecord.Service(String name,
                         DNSRecordClass recordClass,
                         boolean unique,
                         int ttl,
                         int priority,
                         int weight,
                         int port,
                         String server)
Method Detail

toByteArray

protected void toByteArray(DataOutputStream dout)
                    throws IOException
Overrides:
toByteArray in class DNSEntry
Throws:
IOException

getPriority

public int getPriority()
Returns:
the priority

getWeight

public int getWeight()
Returns:
the weight

getPort

public int getPort()
Returns:
the port

isSingleValued

public boolean isSingleValued()
Description copied from class: DNSRecord
Determine if a record can have multiple values in the cache.

Specified by:
isSingleValued in class DNSRecord
Returns:
false if this record can have multiple values in the cache, true otherwise.

getServiceInfo

public ServiceInfo getServiceInfo(boolean persistent)
Description copied from class: DNSRecord
Return a service information associated with that record if appropriate.

Specified by:
getServiceInfo in class DNSRecord
Parameters:
persistent - if true ServiceListener.resolveService will be called whenever new new information is received.
Returns:
service information

getServiceEvent

public ServiceEvent getServiceEvent(JmDNSImpl dns)
Description copied from class: DNSRecord
Creates and return a service event for this record.

Specified by:
getServiceEvent in class DNSRecord
Parameters:
dns - DNS serviced by this event
Returns:
service event

toString

protected void toString(StringBuilder aLog)
Overrides:
toString in class DNSRecord

Last updated 2011-08-25 12:40

Copyright © 2002-2011 JmDNS. All Rights Reserved.