$search
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()) |
Service record.
Definition at line 639 of file DNSRecord.java.
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.
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.
int javax::jmdns::impl::DNSRecord::Service::getPort | ( | ) | [inline] |
Definition at line 705 of file DNSRecord.java.
int javax::jmdns::impl::DNSRecord::Service::getPriority | ( | ) | [inline] |
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.
ServiceEvent javax::jmdns::impl::DNSRecord::Service::getServiceEvent | ( | JmDNSImpl | dns | ) | [inline, virtual] |
Creates and return a service event for this record.
dns | DNS serviced by this 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.
persistent | if true ServiceListener.resolveService will be called whenever new new information is received. |
Implements javax::jmdns::impl::DNSRecord.
Definition at line 810 of file DNSRecord.java.
int javax::jmdns::impl::DNSRecord::Service::getWeight | ( | ) | [inline] |
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.
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.
Implements javax::jmdns::impl::DNSRecord.
Definition at line 774 of file DNSRecord.java.
boolean javax::jmdns::impl::DNSRecord::Service::isSingleValued | ( | ) | [inline, virtual] |
Determine if a record can have multiple values in the cache.
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] |
dout |
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] |
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.
final int javax::jmdns::impl::DNSRecord::Service::_port [private] |
Definition at line 643 of file DNSRecord.java.
final int javax::jmdns::impl::DNSRecord::Service::_priority [private] |
Definition at line 641 of file DNSRecord.java.
final String javax::jmdns::impl::DNSRecord::Service::_server [private] |
Definition at line 644 of file DNSRecord.java.
final int javax::jmdns::impl::DNSRecord::Service::_weight [private] |
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.