- All Superinterfaces:
ConnectionRequest
Contains basic information about a remote client
-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.common.rmi.client.ConnectionRequest
ConnectionRequest.Builder
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
static RemoteClient
remoteClient
(ConnectionRequest connectionRequest) Instantiates a new RemoteClientstatic RemoteClient
remoteClient
(ConnectionRequest connectionRequest, User databaseUser) Instantiates a new RemoteClientstatic RemoteClient
remoteClient
(ConnectionRequest connectionRequest, User databaseUser, String clientHost) Instantiates a new RemoteClientstatic RemoteClient
remoteClient
(ConnectionRequest connectionRequest, String clientHost) Instantiates a new RemoteClientwithDatabaseUser
(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
-
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()- 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
-
remoteClient
Instantiates a new RemoteClient- Parameters:
connectionRequest
- the connection request- Returns:
- a new RemoteClient instance
-
remoteClient
Instantiates a new RemoteClient- Parameters:
connectionRequest
- the connection requestclientHost
- the client hostname- Returns:
- a new RemoteClient instance
-
remoteClient
Instantiates a new RemoteClient- Parameters:
connectionRequest
- the connection requestdatabaseUser
- the user to use when connecting to the underlying database- Returns:
- a new RemoteClient instance
-
remoteClient
static RemoteClient remoteClient(ConnectionRequest connectionRequest, User databaseUser, String clientHost) Instantiates a new RemoteClient- Parameters:
connectionRequest
- the connection requestdatabaseUser
- the user to use when connecting to the underlying databaseclientHost
- the client hostname- Returns:
- a new RemoteClient instance
-