org.apache.maven.it
Class TunnelingProxyServer

java.lang.Object
  extended by org.apache.maven.it.TunnelingProxyServer
All Implemented Interfaces:
Runnable

public class TunnelingProxyServer
extends Object
implements Runnable

A simple HTTP proxy that only understands the CONNECT method to check HTTPS tunneling.

Author:
Benjamin Bentmann

Constructor Summary
TunnelingProxyServer(int port, String targetHost, int targetPort, String connectFilter)
           
 
Method Summary
 int getPort()
           
 void run()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TunnelingProxyServer

public TunnelingProxyServer(int port,
                            String targetHost,
                            int targetPort,
                            String connectFilter)
Method Detail

getPort

public int getPort()

start

public void start()
           throws IOException
Throws:
IOException

stop

public void stop()
          throws IOException
Throws:
IOException

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.