public String getHost() { if (hasConnection()) { return wrappedConnection.getHost(); } else { return null; } }
/** * Creates a new HttpConnectionAdapter. * @param connection the connection to be wrapped */ public HttpConnectionAdapter(HttpConnection connection) { super(connection.getHost(), connection.getPort(), connection.getProtocol()); this.wrappedConnection = connection; }
buf.append(protocol.getScheme().toLowerCase()); buf.append("://"); buf.append(connection.getHost()); if ((connection.getPort() != -1) && (connection.getPort() != protocol.getDefaultPort())
host = method.getParams().getVirtualHost(); if (host == null) { host = conn.getHost();
LOG.debug("Using virtual host name: " + host); } else { host = conn.getHost();
port = conn.getProtocol().getDefaultPort(); buffer.append(conn.getHost()); buffer.append(':'); buffer.append(port);
if (!this.host.getHostName().equalsIgnoreCase(connection.getHost())) { return false;
host = proxy ? conn.getProxyHost() : conn.getHost();
host = conn.getHost();
host = conn.getHost();
String host = method.getParams().getVirtualHost(); if (host == null) { host = conn.getHost();
this.conn.getProtocol().getScheme(), null, this.conn.getHost(), this.conn.getPort(), method.getPath()
/** * Gets the host configuration for a connection. * @param conn the connection to get the configuration of * @return a new HostConfiguration */ private HostConfiguration configurationForConnection(HttpConnection conn) { HostConfiguration connectionConfiguration = new HostConfiguration(); connectionConfiguration.setHost( conn.getHost(), conn.getPort(), conn.getProtocol() ); if (conn.getLocalAddress() != null) { connectionConfiguration.setLocalAddress(conn.getLocalAddress()); } if (conn.getProxyHost() != null) { connectionConfiguration.setProxy(conn.getProxyHost(), conn.getProxyPort()); } return connectionConfiguration; }
String host = this.params.getVirtualHost(); if (host == null) { host = conn.getHost();
public String getHost() { if (hasConnection()) { return wrappedConnection.getHost(); } else { return null; } }
public String getHost() { if (hasConnection()) { return wrappedConnection.getHost(); } else { return null; } }
public String getHost() { if (hasConnection()) { return wrappedConnection.getHost(); } else { return null; } }
/** * Creates a new HttpConnectionAdapter. * @param connection the connection to be wrapped */ public HttpConnectionAdapter(HttpConnection connection) { super(connection.getHost(), connection.getPort(), connection.getProtocol()); this.wrappedConnection = connection; }
/** * Creates a new HttpConnectionAdapter. * @param connection the connection to be wrapped */ public HttpConnectionAdapter(HttpConnection connection) { super(connection.getHost(), connection.getPort(), connection.getProtocol()); this.wrappedConnection = connection; }