|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UniqueIdService
This service provides unique identifiers for the instance of Turbine, and for objects it creates.
Field Summary | |
---|---|
static java.lang.String |
SERVICE_NAME
|
Method Summary | |
---|---|
java.lang.String |
getInstanceId()
Returs an identifer of this Turbine instance that is unique both on the server and worldwide. |
java.lang.String |
getPseudorandomId()
Returns a unique identifier that looks like random data. |
java.lang.String |
getUniqueId()
Returns an identifier that is unique within this turbine instance, but does not have random-like apearance. |
Methods inherited from interface org.apache.turbine.services.Service |
---|
getConfiguration, getName, getProperties, setName, setServiceBroker |
Methods inherited from interface org.apache.turbine.services.Initable |
---|
getInit, init, init, setInitableBroker, shutdown |
Field Detail |
---|
static final java.lang.String SERVICE_NAME
Method Detail |
---|
java.lang.String getInstanceId()
Returs an identifer of this Turbine instance that is unique both on the server and worldwide.
java.lang.String getUniqueId()
Returns an identifier that is unique within this turbine instance, but does not have random-like apearance.
This method is intended to work fast; it can be used for creating names of temporary files.
java.lang.String getPseudorandomId()
Returns a unique identifier that looks like random data.
This method provides indentifiers in a way that makes it hard to guess or count, but still ensures their uniqueness within this instance of Turbine. It can be used for generating cookies or other data that travels back and forth between server and browser, and is potentialy security sensitive.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |