Example usage for org.apache.http.conn.socket ConnectionSocketFactory getClass

List of usage examples for org.apache.http.conn.socket ConnectionSocketFactory getClass

Introduction

In this page you can find the example usage for org.apache.http.conn.socket ConnectionSocketFactory getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImplSocketFactoryTest.java

<T> void verifyFactoryInstance(AvaticaCommonsHttpClientImpl client, String registry, Class<T> expected) {
    ConnectionSocketFactory factory = client.socketFactoryRegistry.lookup(registry);
    if (expected == null) {
        assertTrue("Factory for registry " + registry + " expected as null", factory == null);
    } else {/* w  ww  . ja v a  2s . c o m*/
        assertTrue("Factory for registry " + registry + " expected of type " + expected.getName(),
                expected.equals(factory.getClass()));
    }
}