Search in sources :

Example 1 with HttpAsyncClientHookProxy

use of com.creditease.uav.hook.httpclients.async.HttpAsyncClientHookProxy in project uavstack by uavorg.

the class DoTestHttpAsyncClientProxy method main.

public static void main(String[] args) {
    ConsoleLogger cl = new ConsoleLogger("test");
    cl.setDebugable(true);
    UAVServer.instance().setLog(cl);
    UAVServer.instance().putServerInfo(CaptureConstants.INFO_APPSERVER_VENDOR, ServerVendor.TOMCAT);
    HttpAsyncClientHookProxy p = new HttpAsyncClientHookProxy("test", Collections.emptyMap());
    p.doInstallDProxy(null, "testApp");
    testClientWithoutCallback(HttpAsyncClients.custom().build());
    testClientWithoutCallback(HttpAsyncClients.createMinimal());
    testClientWithoutCallback(HttpAsyncClients.createDefault());
    testClientWithoutCallback(HttpAsyncClients.createPipelining());
    testClientWithoutCallback(HttpAsyncClients.createSystem());
    testClient(HttpAsyncClients.custom().build());
    testClient(HttpAsyncClients.createMinimal());
    testClient(HttpAsyncClients.createDefault());
    testClient(HttpAsyncClients.createPipelining());
    testClient(HttpAsyncClients.createSystem());
}
Also used : HttpAsyncClientHookProxy(com.creditease.uav.hook.httpclients.async.HttpAsyncClientHookProxy) ConsoleLogger(com.creditease.monitor.log.ConsoleLogger)

Aggregations

ConsoleLogger (com.creditease.monitor.log.ConsoleLogger)1 HttpAsyncClientHookProxy (com.creditease.uav.hook.httpclients.async.HttpAsyncClientHookProxy)1