Package org.exoplatform.chat.utils
Class ChatUtils
- java.lang.Object
-
- org.exoplatform.chat.utils.ChatUtils
-
public class ChatUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ChatUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectfromString(String s)Read the object from Base64 string.static StringgetExternalRoomId(String identifier)static StringgetRoomId(String roomName)static StringgetRoomId(String roomName, String user)static StringgetRoomId(List<String> users)static StringgetServerBase()static voidinitServerBase(String serverBaseURL)static StringtoString(Serializable o)Write the object to a Base64 string.
-
-
-
Method Detail
-
fromString
public static Object fromString(String s) throws IOException, ClassNotFoundException
Read the object from Base64 string.- Throws:
IOExceptionClassNotFoundException
-
toString
public static String toString(Serializable o) throws IOException
Write the object to a Base64 string.- Throws:
IOException
-
getServerBase
public static String getServerBase()
-
initServerBase
public static void initServerBase(String serverBaseURL)
-
-