- All Superinterfaces:
ConnectionRequest
Contains basic information about a remote client
- See Also:
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteClient.Builder
builder
(ConnectionRequest connectionRequest) Instantiates a newRemoteClient.Builder
.Note that if the client host is not knownUNKNOWN_HOST
is returned.copy()
withDatabaseUser
(User databaseUser) Instantiates a new RemoteClient based on this instance but with the specified database userMethods inherited from interface is.codion.common.rmi.client.ConnectionRequest
clientId, clientLocale, clientTimeZone, clientTypeId, clientVersion, frameworkVersion, parameters, user
-
Field Details
-
UNKNOWN_HOST
- See Also:
-
-
Method Details
-
connectionRequest
ConnectionRequest connectionRequest()- Returns:
- the initial connection request this client is based on
-
creationTime
LocalDateTime creationTime()- Returns:
- the time when this client connection was created
-
databaseUser
User databaseUser()- Returns:
- the user used when connecting to the underlying database
-
clientHost
String clientHost()Note that if the client host is not knownUNKNOWN_HOST
is returned.- Returns:
- the client hostname
-
withDatabaseUser
Instantiates a new RemoteClient based on this instance but with the specified database user- Parameters:
databaseUser
- the database user to use- Returns:
- a new RemoteClient instance
-
copy
RemoteClient copy()- Specified by:
copy
in interfaceConnectionRequest
- Returns:
- a copy of this remote client with copies of its user instances
-
builder
Instantiates a newRemoteClient.Builder
.- Parameters:
connectionRequest
- the connection request- Returns:
- a new builder
-