Example usage for java.rmi.server UID toString

List of usage examples for java.rmi.server UID toString

Introduction

In this page you can find the example usage for java.rmi.server UID toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of this UID.

Usage

From source file:nl.nn.adapterframework.util.Misc.java

/**
* Creates a Universally Unique Identifier, via the java.rmi.server.UID class.
*///from  w  w w.jav  a  2 s. com
public static String createSimpleUUID() {
    UID uid = new UID();

    String uidString = asHex(getIPAddress()) + "-" + uid.toString();
    // Replace semi colons by underscores, so IBIS will support it
    uidString = uidString.replace(':', '_');
    return uidString;
}

From source file:org.moonwave.util.UUID.java

/**
 * Returns a uuid based on java.rmi.server.UID
 * @return//from   w w w.j  ava2  s.  com
 */
public static String newId() {
    UID uid = new UID();
    String uuid = uid.toString();
    uuid = StringUtils.replace(uuid, ":", "");
    uuid = StringUtils.replace(uuid, "-", "");
    return uuid;
}

From source file:org.openhie.openempi.nhinadapter.hl7.Utilities.java

public static String generateMessageId() {
    java.rmi.server.UID uid = new java.rmi.server.UID();
    log.debug("generated message id=" + uid.toString());
    return uid.toString();
}

From source file:org.openmobster.core.common.Utilities.java

/**
 * Randomly generates a unique identifier
 * /*from   w ww . j  a v a2 s. com*/
 * @return the unique identifier
 */
public static String generateUID() {
    String uid = null;

    UID cour = new UID();
    uid = String.valueOf(cour.toString());

    return uid;
}