|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.openeai.OpenEaiObject
|
+--org.openeai.uuidgen.GenericUuid
This class is used to either request a UUID (RandomUuid) from the URL specified or generate one locally if errors occur requesting one remotely.
RandomUuid,
Uuid| Field Summary |
| Fields inherited from class org.openeai.OpenEaiObject |
logger |
| Constructor Summary | |
GenericUuid()
Constructor |
|
GenericUuid(java.lang.String url)
|
|
| Method Summary | |
java.lang.String |
getId()
Returns the UUID currently contained within this object. |
java.lang.String |
getUrl()
Returns the URL to be used when requesting a UUID. |
java.lang.String |
requestId(java.lang.String url)
Requests a RandomUuid from the supplied URL. |
void |
setId(java.lang.String id)
Sets the UUID currently contained within this object. |
void |
setUrl(java.lang.String url)
Sets the URL to be used when requesting a UUID. |
| Methods inherited from class org.openeai.OpenEaiObject |
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GenericUuid()
public GenericUuid(java.lang.String url)
throws java.io.IOException
| Method Detail |
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String requestId(java.lang.String url)
throws java.net.MalformedURLException,
java.io.IOException
A UUID will be generated locally if one of the following criteria are met:
java.net.MalformedURLException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||