113114115116117118119120121122
} return local; } public void close() throws IOException { ClientAsyncConnection conn = getConnection(); if (conn != null) { conn.close(); } }
120121122123124125126127128129
conn.close(); } } public void shutdown() throws IOException { ClientAsyncConnection conn = getConnection(); if (conn != null) { conn.shutdown(); } }
127128129130131132133134135136137138
conn.shutdown(); } } public boolean isOpen() { ClientAsyncConnection conn = getConnection(); if (conn != null) { return conn.isOpen(); } else { return false; } }
140141142143144145146147
public boolean isStale() { return isOpen(); } public void setSocketTimeout(int timeout) { ClientAsyncConnection conn = ensureConnection(); conn.setSocketTimeout(timeout); }
145146147148149150151152
ClientAsyncConnection conn = ensureConnection(); conn.setSocketTimeout(timeout); } public int getSocketTimeout() { ClientAsyncConnection conn = ensureConnection(); return conn.getSocketTimeout(); }
150151152153154155156157
ClientAsyncConnection conn = ensureConnection(); return conn.getSocketTimeout(); } public HttpConnectionMetrics getMetrics() { ClientAsyncConnection conn = ensureConnection(); return conn.getMetrics(); }
155156157158159160161162
ClientAsyncConnection conn = ensureConnection(); return conn.getMetrics(); } public InetAddress getLocalAddress() { ClientAsyncConnection conn = ensureConnection(); return conn.getLocalAddress(); }
160161162163164165166167
ClientAsyncConnection conn = ensureConnection(); return conn.getLocalAddress(); } public int getLocalPort() { ClientAsyncConnection conn = ensureConnection(); return conn.getLocalPort(); }
165166167168169170171172
ClientAsyncConnection conn = ensureConnection(); return conn.getLocalPort(); } public InetAddress getRemoteAddress() { ClientAsyncConnection conn = ensureConnection(); return conn.getRemoteAddress(); }
170171172173174175176177
ClientAsyncConnection conn = ensureConnection(); return conn.getRemoteAddress(); } public int getRemotePort() { ClientAsyncConnection conn = ensureConnection(); return conn.getRemotePort(); }