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 9c698ffa2c234a677d618593ac9f29f009f408c1..0f99265448a9fd78d3c22348c8859b168c731721 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 2df0730d75618bbe8e685cb46a6e2903bb3b9dca..171f220142b9964ca58b7a3583b6ea16f1be2ce5 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>