Class DataToIDService


  • public class DataToIDService
    extends Object
    • Constructor Detail

      • DataToIDService

        public DataToIDService()
    • Method Detail

      • getInstance

        public static DataToIDService getInstance​(javax.servlet.ServletContext application)
      • setData

        public String setData​(String data)
        create a data with id to access it.
        Parameters:
        data - a free data
        Returns:
        a random id to access to data.
      • clearTimeData

        public void clearTimeData()
      • setData

        public String setData​(String data,
                              long liveTime)
        set a data not for infinity time
        Parameters:
        data - a data
        liveTime - in ms after this time the data is obsolete
        Returns:
      • main

        public static void main​(String[] args)
      • clearData

        public void clearData​(String data)
        remove a value from properties.
        Parameters:
        data -