Package org.apache.http.nio.conn

Examples of org.apache.http.nio.conn.OperatedAsyncClientConnection


        }
        return local;
    }

    public void close() throws IOException {
        OperatedAsyncClientConnection conn = getConnection();
        if (conn != null) {
            conn.close();
        }
    }
View Full Code Here


            conn.close();
        }
    }

    public void shutdown() throws IOException {
        OperatedAsyncClientConnection conn = getConnection();
        if (conn != null) {
            conn.shutdown();
        }
    }
View Full Code Here

            conn.shutdown();
        }
    }

    public boolean isOpen() {
        OperatedAsyncClientConnection conn = getConnection();
        if (conn != null) {
            return conn.isOpen();
        } else {
            return false;
        }
    }
View Full Code Here

    public boolean isStale() {
        return isOpen();
    }

    public void setSocketTimeout(int timeout) {
        OperatedAsyncClientConnection conn = ensureConnection();
        conn.setSocketTimeout(timeout);
    }
View Full Code Here

        OperatedAsyncClientConnection conn = ensureConnection();
        conn.setSocketTimeout(timeout);
    }

    public int getSocketTimeout() {
        OperatedAsyncClientConnection conn = ensureConnection();
        return conn.getSocketTimeout();
    }
View Full Code Here

        OperatedAsyncClientConnection conn = ensureConnection();
        return conn.getSocketTimeout();
    }

    public HttpConnectionMetrics getMetrics() {
        OperatedAsyncClientConnection conn = ensureConnection();
        return conn.getMetrics();
    }
View Full Code Here

        OperatedAsyncClientConnection conn = ensureConnection();
        return conn.getMetrics();
    }

    public InetAddress getLocalAddress() {
        OperatedAsyncClientConnection conn = ensureConnection();
        return conn.getLocalAddress();
    }
View Full Code Here

        OperatedAsyncClientConnection conn = ensureConnection();
        return conn.getLocalAddress();
    }

    public int getLocalPort() {
        OperatedAsyncClientConnection conn = ensureConnection();
        return conn.getLocalPort();
    }
View Full Code Here

        OperatedAsyncClientConnection conn = ensureConnection();
        return conn.getLocalPort();
    }

    public InetAddress getRemoteAddress() {
        OperatedAsyncClientConnection conn = ensureConnection();
        return conn.getRemoteAddress();
    }
View Full Code Here

        OperatedAsyncClientConnection conn = ensureConnection();
        return conn.getRemoteAddress();
    }

    public int getRemotePort() {
        OperatedAsyncClientConnection conn = ensureConnection();
        return conn.getRemotePort();
    }
View Full Code Here

TOP

Related Classes of org.apache.http.nio.conn.OperatedAsyncClientConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.