Stay organized with collections
Save and categorize content based on your preferences.
HostNameResolver
public
interface
HostNameResolver
org.apache.http.conn.scheme.HostNameResolver
|
This interface was deprecated
in API level 22.
Please use URL.openConnection()
instead.
Please visit this webpage
for further details.
Summary
Public methods
resolve
public abstract InetAddress resolve (String hostname)
Parameters |
hostname |
String |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# HostNameResolver\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n22](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nHostNameResolver\n================\n\n\n`\npublic\n\n\ninterface\nHostNameResolver\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------|\n| org.apache.http.conn.scheme.HostNameResolver |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface was deprecated\nin API level 22.** \n\nPlease use [URL.openConnection()](/reference/java/net/URL#openConnection()) instead.\nPlease visit [this webpage](http://android-developers.blogspot.com/2011/09/androids-http-clients.html)\nfor further details.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[InetAddress](/reference/java/net/InetAddress) | ` `[resolve](/reference/org/apache/http/conn/scheme/HostNameResolver#resolve(java.lang.String))`(`[String](/reference/java/lang/String)` hostname) ` |\n\nPublic methods\n--------------\n\n### resolve\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract InetAddress resolve (String hostname)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-----------------|\n| `hostname` | `String` \u003cbr /\u003e |\n\n| Returns ||\n|------------------------------------------------|--------|\n| [InetAddress](/reference/java/net/InetAddress) | \u003cbr /\u003e |\n\n| Throws ||\n|-----------------------------------------------|---|\n| [IOException](/reference/java/io/IOException) | |"]]