public class ServiceRef
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Override equals to compare the wrapped service info instances.
|
protected static java.lang.String |
getBaseName(java.lang.String fullName,
java.lang.String fullType)
Internally used to strip the type information from the name to get just the base name.
|
protected static java.lang.String |
getBaseType(java.lang.String fullType)
Internally used to strip the communication protocol and DNS address from the full type name.
|
java.lang.String |
getFullType()
Get the fully qualified type
|
protected static java.lang.String |
getFullType(java.lang.String baseType)
Internally used to construct the full bonjour type from the simple base type.
|
java.lang.String |
getHostAddress()
Get the address of the remote service.
|
int |
getPort()
Get the port for connecting to the remote service.
|
java.lang.String |
getRawName()
Get the unique raw name of the service provider.
|
java.lang.String |
getServiceName()
Get the name of the service.
|
java.lang.String |
getType()
Get the type of service provided.
|
int |
hashCode()
override hashCode as required for consistency with equals
|
public java.lang.String getServiceName()
public java.lang.String getRawName()
public java.lang.String getType()
public java.lang.String getFullType()
public java.lang.String getHostAddress()
public int getPort()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- The other service reference against which to compare this one.public int hashCode()
hashCode
in class java.lang.Object
protected static java.lang.String getBaseType(java.lang.String fullType)
fullType
- The full rendezvous type (e.g. "greeting._tcp._local.")protected static java.lang.String getBaseName(java.lang.String fullName, java.lang.String fullType)
fullName
- The full rendezvous name (e.g. "Mary.greeting._tcp._local.")fullType
- The full rendezvous type (e.g. "greeting._tcp._local.")protected static java.lang.String getFullType(java.lang.String baseType)
baseType
- The simple base type (e.g. "greeting")