handler.notifyStart(listenerMap.size());
}
}
private void startListener(IHttpProxyListenerConfig config) {
IRequestOriginProxy requestOrigin = currentWorkspace.getRequestLog().getRequestOriginProxy(config.getInetAddress(), config.getPort());
IHttpRequestEngine requestEngine = requestEngineFactory.createRequestEngine(IHttpRequestEngine.EngineConfigType.CONFIG_PROXY, requestEngineConfig, requestOrigin);
requestEngine.setCookieStore(cookieStore);
HttpProxyListener listener = new HttpProxyListener(config, transactionManipulator, interceptor, requestEngine, sslContextRepository);
listener.registerEventHandler(listenerEventHandler);
listenerMap.put(config.toString(), listener);