Class ClajLink
java.lang.Object
com.xpdustry.claj.api.ClajLink
CLaJ links (for this version) are URI, and formatted like that:
-
-
-
-
claj://host:port/room-id
or host:port/room-id.-
'claj://' is the protocol name (this part is optional). -
'host' is the host server. -
'port' is the server port to connect to. -
'room-id' is a base64 (url safe) encoded long, generated by the server and
given to the client that created the room.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PROTOCOL
- See Also:
-
SCHEME
- See Also:
-
uri
-
host
-
port
public final int port -
roomId
public final long roomId -
encodedRoomId
-
-
Constructor Details
-
ClajLink
-
ClajLink
-
-
Method Details
-
toString
-
equals
-
hashCode
-
fromString
- Throws:
IllegalArgumentException- if the link is invalid
-