Package javax.jmdns.impl
Class NameRegister.UniqueNameAcrossInterface
- java.lang.Object
-
- javax.jmdns.impl.NameRegister.BaseRegister
-
- javax.jmdns.impl.NameRegister.UniqueNameAcrossInterface
-
- All Implemented Interfaces:
NameRegister
- Enclosing interface:
- NameRegister
public static class NameRegister.UniqueNameAcrossInterface extends NameRegister.BaseRegister
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.jmdns.impl.NameRegister
NameRegister.BaseRegister, NameRegister.Factory, NameRegister.NameType, NameRegister.UniqueNameAcrossInterface, NameRegister.UniqueNamePerInterface
-
-
Constructor Summary
Constructors Constructor Description UniqueNameAcrossInterface()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkName(InetAddress networkInterface, String name, NameRegister.NameType type)
Checks a name that is defended by this group of mDNS.String
incrementName(InetAddress networkInterface, 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(InetAddress networkInterface, String name, NameRegister.NameType type)
Registers a name that is defended by this group of mDNS.-
Methods inherited from class javax.jmdns.impl.NameRegister.BaseRegister
incrementNameWithDash, incrementNameWithParentesis
-
-
-
-
Method Detail
-
register
public void register(InetAddress networkInterface, String name, NameRegister.NameType type)
Description copied from interface:NameRegister
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
public boolean checkName(InetAddress networkInterface, String name, NameRegister.NameType type)
Description copied from interface:NameRegister
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:
true
if the name is not in conflict,flase
otherwise.
-
incrementName
public String incrementName(InetAddress networkInterface, String name, NameRegister.NameType type)
Description copied from interface:NameRegister
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
-
-