|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.bonjour.BonjourService
public class BonjourService
A simple container for a Bonjour service described by a name and URL.
| Constructor Summary | |
|---|---|
BonjourService(java.lang.String name,
FileURL url,
java.lang.String fullyQualifiedName)
Creates a new BonjourService instance using the given name and URL. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true if the given Object is a BonjourService instance with the same fully qualified name. |
java.lang.String |
getFullyQualifiedName()
Returns the fully qualified name of this service, e.g. |
java.lang.String |
getName()
Returns the unqualified name of this service, e.g. |
java.lang.String |
getNameWithProtocol()
Returns the name appended with the URL's protocol. |
FileURL |
getURL()
Returns the location of this service. |
java.lang.String |
toString()
Returns a String representation of this BonjourService in the form name / url. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BonjourService(java.lang.String name,
FileURL url,
java.lang.String fullyQualifiedName)
name - the unqualified name of the service, e.g. 'foobar'url - the url pointing to the service's locationfullyQualifiedName - the fully qualified name of the service, e.g. 'foobar._http._tcp.local'| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getNameWithProtocol()
public FileURL getURL()
public java.lang.String getFullyQualifiedName()
public boolean equals(java.lang.Object o)
true if the given Object is a BonjourService instance with the same fully qualified name.
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard