Search in sources :

Example 1 with HttpClientHookProxy

use of com.creditease.uav.hook.httpclients.sync.HttpClientHookProxy in project uavstack by uavorg.

the class DoTestHttpClientProxy 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);
    HttpClientHookProxy p = new HttpClientHookProxy("test", Collections.emptyMap());
    p.doInstallDProxy(null, "testApp");
    // testDefaultClient();
    testClient(HttpClients.createDefault());
// testClient(HttpClients.createMinimal());
// testClient(HttpClients.createSystem());
}
Also used : ConsoleLogger(com.creditease.monitor.log.ConsoleLogger) HttpClientHookProxy(com.creditease.uav.hook.httpclients.sync.HttpClientHookProxy)

Aggregations

ConsoleLogger (com.creditease.monitor.log.ConsoleLogger)1 HttpClientHookProxy (com.creditease.uav.hook.httpclients.sync.HttpClientHookProxy)1