From b80403987ab8252f884d0c41a11a316e7bb32f97 Mon Sep 17 00:00:00 2001 From: Gabriel Landais <glandais@kereval.com> Date: Tue, 8 Nov 2011 14:38:08 +0000 Subject: [PATCH] git-svn-id: https://scm.gforge.inria.fr/authscm/ycadoret/svn/gazelle/Maven/gazelle-proxy/trunk@24585 356b4b1a-1d2b-0410-8bf1-ffa24008f01e --- .../java/net/ihe/gazelle/proxy/netty/App.java | 32 ++++++++----------- pom.xml | 2 +- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/gazelle-proxy-netty/src/main/java/net/ihe/gazelle/proxy/netty/App.java b/gazelle-proxy-netty/src/main/java/net/ihe/gazelle/proxy/netty/App.java index 9c698ffa..0f992654 100644 --- a/gazelle-proxy-netty/src/main/java/net/ihe/gazelle/proxy/netty/App.java +++ b/gazelle-proxy-netty/src/main/java/net/ihe/gazelle/proxy/netty/App.java @@ -15,13 +15,16 @@ import javax.net.ssl.SSLSession; import javax.net.ssl.SSLSocketFactory; import javax.net.ssl.TrustManager; -import net.ihe.gazelle.proxy.netty.protocols.hl7.HL7EventListenerSimple; -import net.ihe.gazelle.proxy.netty.protocols.hl7.HL7Proxy; +import net.ihe.gazelle.proxy.netty.protocols.http.HttpEventListenerSimple; +import net.ihe.gazelle.proxy.netty.protocols.http.HttpProxy; import net.ihe.gazelle.proxy.netty.protocols.tls.AlwaysTrustManager; import net.ihe.gazelle.proxy.netty.protocols.tls.TlsConfig; import net.ihe.gazelle.proxy.netty.protocols.tls.TlsCredentials; import net.ihe.gazelle.proxy.netty.protocols.tls.TlsKeyManager; +import org.jboss.netty.handler.codec.http.HttpRequest; +import org.jboss.netty.handler.codec.http.HttpResponse; + public class App { public static void main(String[] args) throws Exception { // testHttpsConnection(); @@ -36,24 +39,15 @@ public class App { httpProxy.start(); */ - final ProxyEventListener<String, String> hl7ProxyEvent = new HL7EventListenerSimple(System.out); - HL7Proxy hl7Proxy = new HL7Proxy(hl7ProxyEvent, 10013, "127.0.0.1", 10014, null); - hl7Proxy.start(); - - // final ProxyEventListener<HttpRequest, HttpResponse> proxyEvent = new - // HttpEventListenerSimple(System.out); - // HttpProxy proxy = new HttpProxy(proxyEvent, 1443, "127.0.0.1", 8443, - // createTLSConfig()); - // proxy.start(); - - // HttpProxy proxy = new HttpProxy(proxyEvent, 8082, - // "office.tiani-spirit.com", 6102); - // proxy.start(); + // final ProxyEventListener<String, String> hl7ProxyEvent = new + // HL7EventListenerSimple(System.out); + // HL7Proxy hl7Proxy = new HL7Proxy(hl7ProxyEvent, 10013, "127.0.0.1", + // 10014, null); + // hl7Proxy.start(); - // HttpProxy proxy = new HttpProxy(proxyEvent, 8081, "127.0.0.1", 80); - // HttpProxy proxy = new HttpProxy(proxyEvent, 8081, "91.121.173.155", - // 80); - // HttpProxy proxy = new HttpProxy(proxyEvent, 8081, "127.0.0.1", 8080); + final ProxyEventListener<HttpRequest, HttpResponse> proxyEvent = new HttpEventListenerSimple(System.out); + HttpProxy proxy = new HttpProxy(proxyEvent, 1443, "www.google.fr", 443, createTLSConfig()); + proxy.start(); } diff --git a/pom.xml b/pom.xml index 2df0730d..171f2201 100644 --- a/pom.xml +++ b/pom.xml @@ -153,7 +153,7 @@ <dependency> <groupId>net.ihe.gazelle.simulators.tls</groupId> <artifactId>TLSSimulator-pki-jar</artifactId> - <version>1.3</version> + <version>1.4</version> <type>jar</type> </dependency> -- GitLab