javax.jmdns.impl
public static class NameRegister.UniqueNamePerInterface extends java.lang.Object implements NameRegister
NameRegister.Factory, NameRegister.NameType, NameRegister.UniqueNameAcrossInterface, NameRegister.UniqueNamePerInterface
Constructor and Description |
---|
NameRegister.UniqueNamePerInterface() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkName(java.net.InetAddress networkInterface,
java.lang.String name,
NameRegister.NameType type)
Checks a name that is defended by this group of mDNS.
|
java.lang.String |
incrementHostName(java.net.InetAddress networkInterface,
java.lang.String name,
NameRegister.NameType type)
Increments a name that is defended by this group of mDNS after it has been found in conflict.
|
void |
register(java.net.InetAddress networkInterface,
java.lang.String name,
NameRegister.NameType type)
Registers a name that is defended by this group of mDNS.
|
public void register(java.net.InetAddress networkInterface, java.lang.String name, NameRegister.NameType type)
NameRegister
register
in interface NameRegister
networkInterface
- IP address to handlename
- name to registertype
- name type to registerpublic boolean checkName(java.net.InetAddress networkInterface, java.lang.String name, NameRegister.NameType type)
NameRegister
checkName
in interface NameRegister
networkInterface
- IP address to handlename
- name to checktype
- name type to checktrue
if the name is not in conflict, flase
otherwise.public java.lang.String incrementHostName(java.net.InetAddress networkInterface, java.lang.String name, NameRegister.NameType type)
NameRegister
incrementHostName
in interface NameRegister
networkInterface
- IP address to handlename
- name to incrementtype
- name type to increments