DiffusionTM Server API 6.6.0-preview.1
The Diffusion WhoIs API is deprecated and will be removed in a future release.
@Deprecated public interface WhoIsProvider
Such a class can be used to perform lookup of IP addresses instead of the
default provider. If used, the class must be
declared in Server.xml.
A separate instance of the provider is used by each WhoIs service thread therefore there is no requirement for the class to be thread-safe.
void whoIs(String address, WhoIsDetails details) throws APIException
A details object will be supplied which can be updated to add any information required.
The details host name and locale should already have been set although the values could be null if they could not be ascertained.
The details object supplied will not represent a site local or loopback address as these would have been dealt with before invoking a provider.
The details object supplied may be updated to provide any information
required. For example
WhoIsDetails.createWhoIsData() can be used to create a data
object to populate which may then be added to the details using
WhoIsDetails.setResolvedName(String) can be used to set a
resolved name for the address if required.
address- the IP address to resolve.
details- a details object which can be updated as required.
APIException- if unable to resolve the address. If such an exception is thrown, it will be logged and so if you wish to silently return with no update to the details, just return.
Copyright © 2020 Push Technology Ltd. All Rights Reserved.