Package javax.jmdns.impl
Interface NameRegister
-
- All Known Implementing Classes:
NameRegister.BaseRegister,NameRegister.UniqueNameAcrossInterface,NameRegister.UniqueNamePerInterface
public interface NameRegister
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNameRegister.BaseRegisterstatic classNameRegister.Factorystatic classNameRegister.NameTypestatic classNameRegister.UniqueNameAcrossInterfacestatic classNameRegister.UniqueNamePerInterface
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckName(java.net.InetAddress networkInterface, java.lang.String name, NameRegister.NameType type)Checks a name that is defended by this group of mDNS.java.lang.StringincrementName(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.voidregister(java.net.InetAddress networkInterface, java.lang.String name, NameRegister.NameType type)Registers a name that is defended by this group of mDNS.
-
-
-
Method Detail
-
register
void register(java.net.InetAddress networkInterface, java.lang.String name, NameRegister.NameType type)Registers a name that is defended by this group of mDNS.- Parameters:
networkInterface- IP address to handlename- name to registertype- name type to register
-
checkName
boolean checkName(java.net.InetAddress networkInterface, java.lang.String name, NameRegister.NameType type)Checks a name that is defended by this group of mDNS.- Parameters:
networkInterface- IP address to handlename- name to checktype- name type to check- Returns:
trueif the name is not in conflict,flaseotherwise.
-
incrementName
java.lang.String incrementName(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.- Parameters:
networkInterface- IP address to handlename- name to incrementtype- name type to increments- Returns:
- new name
-
-