The Diffusion WhoIs API is deprecated and will be removed in a future release.
@Deprecated public interface WhoIsDetails
Modifier and Type | Method and Description |
---|---|
WhoIsData |
createWhoIsData()
Deprecated.
Creates an empty WhoIs data object.
|
WhoIsData |
createWhoIsData(Map<String,String> map)
Deprecated.
Create a WhoIs data object populated with supplied data.
|
String |
getAddress()
Deprecated.
The address that the lookup relates to.
|
String |
getHostName()
Deprecated.
The host name.
|
Locale |
getLocale()
Deprecated.
Returns the result of a geographic lookup of the IP address indicating
where the address was allocated.
|
String |
getResolvedName()
Deprecated.
Returns the resolved name.
|
WhoIsData |
getWhoIsData()
Deprecated.
Returns WhoIs data associated with the Internet address.
|
boolean |
isLocal()
Deprecated.
Returns true if this is a local address.
|
boolean |
isLoopback()
Deprecated.
Returns true if this is a loopback address.
|
void |
setResolvedName(String name)
Deprecated.
May be used to set a resolved name in a
WhoIsProvider
implementation. |
void |
setWhoIsData(WhoIsData whoIsData)
Deprecated.
Used to set WhoIs data for the Internet address from within a
WhoIsProvider implementation. |
String getAddress()
String getHostName()
void setResolvedName(String name)
WhoIsProvider
implementation.
name
- the name to set.String getResolvedName()
getHostName()
so null will never be returned.Locale getLocale()
If the Internet address could not be found in the database, the country and language of the returned Locale are set to empty Strings.
WhoIsData getWhoIsData()
The data is as looked up by the WhoIsProvider
declared in
Server.xml.
void setWhoIsData(WhoIsData whoIsData)
WhoIsProvider
implementation.
The data that is set can be any set of key/value pairs but is normally extracted from an enquiry on a WhoIs server.
The data may be created using createWhoIsData()
and then
populated or set from a map of data using createWhoIsData(Map)
.
whoIsData
- the data to set.WhoIsData createWhoIsData()
The object may then be populated and added to the details using
setWhoIsData(WhoIsData)
.
Such an object may also be set as a child of another WhoIsData object
using WhoIsData.addChild(WhoIsData)
.
WhoIsData createWhoIsData(Map<String,String> map)
The object may then be added to the details using
setWhoIsData(WhoIsData)
.
Such an object may also be set as a child of another WhoIsData object
using WhoIsData.addChild(WhoIsData)
.
map
- data in the form of key/value pairs.boolean isLoopback()
If this is the case, there will be no Locale or WhoIs data.
boolean isLocal()
If this is the case, there will be no Locale or WhoIs data.
Copyright © 2022 Push Technology Ltd. All Rights Reserved.