org.mobicents.media.server.impl.naming
Class EndpointNameGenerator

java.lang.Object
  extended by org.mobicents.media.server.impl.naming.EndpointNameGenerator

public class EndpointNameGenerator
extends Object

Generates concrete names for endpoint using specified pattern. The local endpoint name is case-insensitive. The syntax of the local endpoint name is hierarchical, where the least specific component of the name is the leftmost term, and the most specific component is the rightmost term. The precise syntax depends on the type of endpoint being named and MAY start with a term that identifies the endpoint type. Patterns follows to the name rules but allows to underspecify the individual terms as numeric range. The range syntax is similar to regular expression symbolic class syntax. Example: mobicents/aap/[1..100]

Author:
kulikov

Constructor Summary
EndpointNameGenerator()
           
 
Method Summary
 boolean hasMore()
          Indicates is it possible to generate more names.
 String next()
          Next generated name.
 void setPattern(String pattern)
          Modifies name pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointNameGenerator

public EndpointNameGenerator()
Method Detail

setPattern

public void setPattern(String pattern)
Modifies name pattern.

Parameters:
pattern - the new pattern value

hasMore

public boolean hasMore()
Indicates is it possible to generate more names.

Returns:
true if more names can be generated.

next

public String next()
Next generated name.

Returns:
the next generated name of endpoint.


Copyright © 2012 TeleStax, Inc.. All Rights Reserved.