MigratoryDataAccessListener::ConnectEvent

Provide information about the client which connects to the server.

Inherits from Event

Public Functions

Name
String getToken()
Provides the entitlement token of the client.
String getClientAddress()
Provides the IP address of the client.
String getUserAgent()
Provides the user agent of the client.
Map< String, Object > getAdditionalInfo()
Get additional attributes of the user as key/value pairs.

Public Functions Documentation

function getToken

String getToken()

Provides the entitlement token of the client.

Return: the entitlement token of the client

The value returned by this method is the entitlement token assigned to the client on the client-side with the client API method MigratoryDataClient.setEntitlementToken().

function getClientAddress

String getClientAddress()

Provides the IP address of the client.

Return: the IP address of the client

function getUserAgent

String getUserAgent()

Provides the user agent of the client.

Return: the user agent of the client

The user agent is a string provided by the client that lets the server identify the running environment of the user, such as the browser, the operating system, etc.

function getAdditionalInfo

Map< String, Object > getAdditionalInfo()

Get additional attributes of the user as key/value pairs.

Return: a map with additional attributes

No additional attributes are currently available.