HttpHost.&lt
Code IndexAdd Codota to your IDE (free)

No snippets found...

  • Common ways to obtain HttpHost
private void myMethod () {
HttpHost h =
  • String hostname;new HttpHost(hostname, port)
  • HttpContext context;(HttpHost) context.getAttribute(id)
  • URI uri;new HttpHost(uri.getHost(), uri.getPort(), uri.getScheme())
  • AI code suggestions by Codota
}
org.apache.httpHttpHost&lt

Javadoc

Holds all of the variables needed to describe an HTTP connection to a host. This includes remote host name, port and scheme.

Popular methods of HttpHost

  • <init>
    Copy constructor for HttpHost.
  • getHostName
    Returns the host name.
  • getPort
    Returns the port.
  • getSchemeName
    Returns the scheme name.
  • toURI
    Return the host URI, as a string.
  • toHostString
    Obtains the host string, without scheme prefix.
  • equals
  • getAddress
    Returns the inet address if explicitly set by a constructor, null otherwise.
  • create
    Creates HttpHost instance from string. Text may not contain any blanks.
  • toString
  • hashCode
  • hashCode

Popular classes and methods

  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java virtua
  • Rectangle (java.awt)
  • File (java.io)
    LocalStorage based File implementation for GWT. Should probably have used Harmony as a starting poin
  • DateFormat (java.text)
    DateFormat is an abstract class for date/time formatting subclasses which formats and parses dates
  • Notification (javax.management)
    Notifications are events emitted by NotificationEmitters
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)