JmDNS 3.4.1

javax.jmdns.impl
Class NameRegister.UniqueNamePerInterface

java.lang.Object
  extended by javax.jmdns.impl.NameRegister.UniqueNamePerInterface
All Implemented Interfaces:
NameRegister
Enclosing interface:
NameRegister

public static class NameRegister.UniqueNamePerInterface
extends Object
implements NameRegister


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.jmdns.impl.NameRegister
NameRegister.Factory, NameRegister.NameType, NameRegister.UniqueNameAcrossInterface, NameRegister.UniqueNamePerInterface
 
Constructor Summary
NameRegister.UniqueNamePerInterface()
           
 
Method Summary
 boolean checkName(InetAddress networkInterface, String name, NameRegister.NameType type)
          Checks a name that is defended by this group of mDNS.
 String incrementHostName(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameRegister.UniqueNamePerInterface

public NameRegister.UniqueNamePerInterface()
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.

Specified by:
register in interface NameRegister
Parameters:
networkInterface - IP address to handle
name - name to register
type - 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.

Specified by:
checkName in interface NameRegister
Parameters:
networkInterface - IP address to handle
name - name to check
type - name type to check
Returns:
true if the name is not in conflict, flase otherwise.

incrementHostName

public String incrementHostName(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.

Specified by:
incrementHostName in interface NameRegister
Parameters:
networkInterface - IP address to handle
name - name to increment
type - name type to increments
Returns:
new name

Last updated 2011-08-25 12:40

Copyright © 2002-2011 JmDNS. All Rights Reserved.