Package org.apache.cxf.wsn.util
Class IdGenerator
java.lang.Object
org.apache.cxf.wsn.util.IdGenerator
Generator for Globally unique Strings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerate a unqiue idGenerate a unique ID - that is friendly for a URL or file systemstatic StringAs we have to find the hostname as a side-affect of generating a unique stub, we allow it's easy retrevial here
-
Constructor Details
-
IdGenerator
public IdGenerator() -
IdGenerator
Construct an IdGenerator
-
-
Method Details
-
getHostName
As we have to find the hostname as a side-affect of generating a unique stub, we allow it's easy retrevial here- Returns:
- the local host name
-
generateId
Generate a unqiue id- Returns:
- a unique id
-
generateSanitizedId
Generate a unique ID - that is friendly for a URL or file system- Returns:
- a unique id
-