Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b8040398 authored by Gabriel Landais's avatar Gabriel Landais
Browse files
parent bfcb5a14
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment