public class DataToIDService extends Object
Constructor and Description |
---|
DataToIDService() |
Modifier and Type | Method and Description |
---|---|
void |
clearData(String data)
remove a value from properties.
|
void |
clearTimeData() |
String |
getData(String id) |
static DataToIDService |
getInstance(File propertiesFile) |
static DataToIDService |
getInstance(javax.servlet.ServletContext application) |
ConfigurationProperties |
getProperties() |
static void |
main(String[] args) |
String |
setData(String data)
create a data with id to access it.
|
String |
setData(String data,
long liveTime)
set a data not for infinity time
|
public static DataToIDService getInstance(javax.servlet.ServletContext application)
public static DataToIDService getInstance(File propertiesFile)
public ConfigurationProperties getProperties()
public String setData(String data)
data
- a free datapublic void clearTimeData()
public String setData(String data, long liveTime)
data
- a dataliveTime
- in ms after this time the data is obsoletepublic static void main(String[] args)
public void clearData(String data)
data
- Copyright © 2012-2018. All Rights Reserved.