All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Package Functions | Static Private Attributes
javax.jmdns.impl.DNSQuestion Class Reference
Inheritance diagram for javax.jmdns.impl.DNSQuestion:
Inheritance graph
[legend]

List of all members.

Classes

class  AllRecords
class  DNS4Address
class  DNS6Address
class  HostInformation
class  Pointer
class  Service
class  Text

Public Member Functions

void addAnswers (JmDNSImpl jmDNSImpl, Set< DNSRecord > answers)
boolean iAmTheOnlyOne (JmDNSImpl jmDNSImpl)
boolean isExpired (long now)
boolean isStale (long now)
void toString (StringBuilder aLog)

Static Public Member Functions

static DNSQuestion newQuestion (String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique)

Protected Member Functions

void addAnswersForServiceInfo (JmDNSImpl jmDNSImpl, Set< DNSRecord > answers, ServiceInfoImpl info)

Package Functions

boolean answeredBy (DNSEntry rec)
 DNSQuestion (String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique)

Static Private Attributes

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

Detailed Description

A DNS question.

Author:
Arthur van Hoff, Pierre Frisch

Definition at line 24 of file DNSQuestion.java.


Constructor & Destructor Documentation

javax.jmdns.impl.DNSQuestion.DNSQuestion ( String  name,
DNSRecordType  type,
DNSRecordClass  recordClass,
boolean  unique 
) [inline, package]

Definition at line 219 of file DNSQuestion.java.


Member Function Documentation

void javax.jmdns.impl.DNSQuestion.addAnswers ( JmDNSImpl  jmDNSImpl,
Set< DNSRecord answers 
) [inline]

Adds answers to the list for our question.

Parameters:
jmDNSImplDNS holding the records
answersList of previous answer to append.

Reimplemented in javax.jmdns.impl.DNSQuestion.AllRecords, javax.jmdns.impl.DNSQuestion.Text, javax.jmdns.impl.DNSQuestion.Service, javax.jmdns.impl.DNSQuestion.Pointer, javax.jmdns.impl.DNSQuestion.DNS6Address, and javax.jmdns.impl.DNSQuestion.DNS4Address.

Definition at line 274 of file DNSQuestion.java.

void javax.jmdns.impl.DNSQuestion.addAnswersForServiceInfo ( JmDNSImpl  jmDNSImpl,
Set< DNSRecord answers,
ServiceInfoImpl  info 
) [inline, protected]

Definition at line 278 of file DNSQuestion.java.

boolean javax.jmdns.impl.DNSQuestion.answeredBy ( DNSEntry  rec) [inline, package]

Check if this question is answered by a given DNS record.

Definition at line 262 of file DNSQuestion.java.

boolean javax.jmdns.impl.DNSQuestion.iAmTheOnlyOne ( JmDNSImpl  jmDNSImpl) [inline]

Checks if we are the only to be able to answer that question.

Parameters:
jmDNSImplDNS holding the records
Returns:
true if we are the only one with the answer to the question, false otherwise.

Reimplemented in javax.jmdns.impl.DNSQuestion.AllRecords, javax.jmdns.impl.DNSQuestion.Text, javax.jmdns.impl.DNSQuestion.Service, javax.jmdns.impl.DNSQuestion.DNS6Address, and javax.jmdns.impl.DNSQuestion.DNS4Address.

Definition at line 315 of file DNSQuestion.java.

boolean javax.jmdns.impl.DNSQuestion.isExpired ( long  now) [inline, virtual]

Check if the record is expired.

Parameters:
nowupdate date
Returns:
true is the record is expired, false otherwise.

Implements javax.jmdns.impl.DNSEntry.

Definition at line 304 of file DNSQuestion.java.

boolean javax.jmdns.impl.DNSQuestion.isStale ( long  now) [inline, virtual]

Check if the record is stale, i.e. it has outlived more than half of its TTL.

Parameters:
nowupdate date
Returns:
true is the record is stale, false otherwise.

Implements javax.jmdns.impl.DNSEntry.

Definition at line 295 of file DNSQuestion.java.

static DNSQuestion javax.jmdns.impl.DNSQuestion.newQuestion ( String  name,
DNSRecordType  type,
DNSRecordClass  recordClass,
boolean  unique 
) [inline, static]

Create a question.

Parameters:
nameDNS name to be resolved
typeRecord type to resolve
recordClassRecord class to resolve
uniqueRequest unicast response (Currently not supported in this implementation)
Returns:
new question

Definition at line 236 of file DNSQuestion.java.

void javax.jmdns.impl.DNSQuestion.toString ( StringBuilder  aLog) [inline]
Parameters:
aLog

Reimplemented from javax.jmdns.impl.DNSEntry.

Definition at line 324 of file DNSQuestion.java.


Member Data Documentation

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

Definition at line 25 of file DNSQuestion.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


zeroconf_jmdns
Author(s): Daniel Stonier
autogenerated on Tue Nov 6 2012 13:08:27