Code example for HttpHost

Methods: getHostNamegetPort

0
     * @deprecated (4.3) use {@link SocketAddressResolver} 
     */ 
    @Deprecated 
    @Override 
    protected SocketAddress resolveRemoteAddress(final HttpHost host) {
        return new InetSocketAddress(host.getHostName(), host.getPort());
    } 
 
    /** 
     * @deprecated (4.3) use {@link SocketAddressResolver} 
     */ 
    @Deprecated 
    @Override 
    protected SocketAddress resolveLocalAddress(final HttpHost host) {
        return null; 
    } 
 
    @Override 
    protected BasicNIOPoolEntry createEntry(final HttpHost host, final NHttpClientConnection conn) {
        final BasicNIOPoolEntry entry = new BasicNIOPoolEntry(
Connect your IDE to all the code out there  Get Codota for Java