ProxyServer
Class ProxyServerMain

java.lang.Object
  extended by java.lang.Thread
      extended by ProxyServer.ProxyServerMain
All Implemented Interfaces:
java.lang.Runnable

public class ProxyServerMain
extends java.lang.Thread

This is the main proxy server class that provides functionality to instantiate a proxy server on a given port and start/stop listening.

Author:
Serge Gorbunov

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ProxyServerMain()
           
ProxyServerMain(int p)
           
 
Method Summary
 void run()
           
 void startFuzzer()
           
 boolean startProxyServer(int port)
          Starts a proxy server on the specified port
 void startRec()
          Starts recording traffic
 void startThreadFuzzer()
           
 void startThreadRec()
           
 void stopFuzzer()
           
 void stopProxyServer()
          Stops recording traffic on the proxy
 void stopRec()
          Stops recording traffic
 void stopServerThread()
           
 void stopThreadFuzzer()
           
 void stopThreadRec()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProxyServerMain

public ProxyServerMain()

ProxyServerMain

public ProxyServerMain(int p)
Method Detail

startProxyServer

public boolean startProxyServer(int port)
Starts a proxy server on the specified port

Parameters:
port - Port on which the proxy should be started
Returns:
True if the server is started successfully

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

stopProxyServer

public void stopProxyServer()
Stops recording traffic on the proxy


stopServerThread

public void stopServerThread()

startRec

public void startRec()
Starts recording traffic


startThreadRec

public void startThreadRec()

stopRec

public void stopRec()
Stops recording traffic


stopThreadRec

public void stopThreadRec()

startFuzzer

public void startFuzzer()

startThreadFuzzer

public void startThreadFuzzer()

stopFuzzer

public void stopFuzzer()

stopThreadFuzzer

public void stopThreadFuzzer()