Class GroupUri
java.lang.Object
org.drasyl.node.plugin.groups.client.GroupUri
This class models the connection/join setting of a group.
This is an immutable object.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getGroup()
getName()
int
hashCode()
static GroupUri
Generates aGroupUri
object from the given groups URI.static GroupUri
Generates aGroupUri
object from the given groups URI.static GroupUri
of
(IdentityPublicKey manager, String credentials, String name, Duration timeout) toString()
toUri()
-
Field Details
-
MIN_TIMEOUT
public static final int MIN_TIMEOUT- See Also:
-
SCHEME
- See Also:
-
-
Method Details
-
getManager
-
getCredentials
-
getName
-
getTimeout
-
hashCode
public int hashCode() -
equals
-
toString
-
toUri
-
getGroup
-
of
public static GroupUri of(IdentityPublicKey manager, String credentials, String name, Duration timeout) -
of
Generates aGroupUri
object from the given groups URI.- Parameters:
uri
- the groups URI- Returns:
- a
GroupUri
object - Throws:
IllegalArgumentException
- if the groups URI is invalid
-
of
Generates aGroupUri
object from the given groups URI.- Parameters:
uri
- the groups URI- Returns:
- a
GroupUri
object - Throws:
IllegalArgumentException
- if the groups URL is invalid
-