Package org.basex.server
Interface ClientInfo
- All Known Implementing Classes:
ClientListener
public interface ClientInfo
Client info.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Method Summary
Modifier and TypeMethodDescriptionReturns the host and port of a client.Returns the name of the current client.default StringclientName(Object id, Context ctx) Returns the name of a client, taken from the specified object or from the logged in user.
-
Method Details
-
clientAddress
String clientAddress()Returns the host and port of a client.- Returns:
- address of client
-
clientName
String clientName()Returns the name of the current client.- Returns:
- name of client
-
clientName
Returns the name of a client, taken from the specified object or from the logged in user.- Parameters:
id- object with user id (can benull)ctx- database context- Returns:
- name of client or
null
-