Package com.iizix.server.geo.ip2location
package com.iizix.server.geo.ip2location
The IIZI integration of the product-neutral
co.mindus.ip2location library: the server module that starts the local IP2Location service from the server settings (IP2LocationModule), the region location provider that answers RegionLocationService requests from it (IP2LocationRegionService), the ILog bridge (ILogEventLogger), the settings assembly (IP2LocationSettings) and the session geolocation log at connect, reconnect and disconnect (SessionGeoLogger), which locates the client address ClientAddressResolver resolves behind trusted proxies.Every switch is off by default: $ip2location.enabled, $geo.webProviders and $geo.sessionLog in ServerSettings.
- Author:
- Christopher Mindus
- ClassDescriptionThe
IEventLoggerof the IIZI server: routes every IP2Location event toILogunder the originating class, INFO as INFO, WARNING as WARNING and ERROR (and any unknown level) as SEVERE.What an administration UI needs of the IP2Location service, in one place and without a type of theco.mindus.ip2locationlibrary: the status of the running service as the NetPhantom IP2Location page shows it (IP2LocationAdmin.getStatus(ServerSettings)), the actions of its buttons and of the context menu of its status indicator, the recent events, and aIP2LocationAdmin.Listenertold when something changed.Told about the service by the library's threads.The status of the service at one moment, the fields of the Status section of the NetPhantom page: everything a UI shows, nothing it must compute.The state of the recovery indicator, in the NetPhantom page's order of precedence.The configuration of the IP2Location service as an administrator edits it: every control of the NetPhantom IP2Location page and of its Recovery Settings dialog, as one immutable value with a builder.The builder of a configuration; starts with the defaults of every setting, which are the defaults ofServerSettingsand of NetPhantom's[IP2Location]section.One database tier of IP2Location LITE as the Database combo box lists it.The recovery action when the error thresholds are exceeded, the three radio buttons of the Recovery Settings dialog; one to one withRecoveryConfig.RecoveryAction.WhatIP2LocationAdminConfig.applyTo(ServerSettings)did with the token.The IP geolocation server module: the IIZI bootstrap of theco.mindus.ip2locationlibrary.The IP2Location region location provider: answersRegionLocationServicerequests from the local IP2Location LITE database throughIP2LocationManager.Assembles the IP2Location service configuration from the server settings: the database directory, theIP2LocationService.Builderand theRecoveryConfig.The IP address mode of the IP2Location service: IPv4 only, or IPv4 and IPv6.Logs the geolocation of a client session at its connection events - connect, reconnect and disconnect - throughILog, when the server settingServerSettings.GEO_SESSION_LOGis on (it is off by default).The result of validating anIP2LocationAdminConfig: the errors that stop the configuration from being applied and the warnings that do not.Collects the messages of a validation and builds the result.One message of a validation: the field it is about and the text.