DiffusionTM Server API 6.5.3
The Diffusion WhoIs API is deprecated and will be removed in a future release.
@Deprecated public class WhoIsDefaultProvider extends Object implements WhoIsProvider
As supplied this uses the WhoIs host and port named in Sever.xml to look up names.
|Constructor and Description|
Create WhoIs Default provider.
|Modifier and Type||Method and Description|
Performs a WhoIs lookup.
public WhoIsDefaultProvider(WhoIsConfig config)
public void whoIs(String address, WhoIsDetails details) throws APIException
A connection is made to the WhoIs provider and returned details are parsed and used to update the supplied details. Child details objects will be added for any separate WhoIs records found and the type of such objects would be the key of the first WhoIs record entry (e.g. "person"). Where duplicate field names occur, all but the first will be suffixed by "_n" where n is a number distinguishing the entries.
The 'netname' entry will be used as the resolved name if present.
address- the IP address to resolve.
details- a details object to update.
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.