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.
Modifier and Type | Method and Description |
---|---|
void |
whoIs(String address,
WhoIsDetails details)
Deprecated.
Resolves a supplied IP address.
|
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.setWhoIsData(WhoIsData)
. Also
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 © 2021 Push Technology Ltd. All Rights Reserved.