Java HTTP Proxy Library Project Page
SourceForge.net Logo

com.wpg.proxy
Class Proxy

java.lang.Object
  extended by java.lang.Thread
      extended by com.wpg.proxy.Proxy
All Implemented Interfaces:
java.lang.Runnable

public class Proxy
extends java.lang.Thread

Main Proxy class which has a test main method and is the base class for all proxy handling


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
Proxy(java.net.InetAddress inetAddr, int port, int backlog)
          Creates a new Proxy without ssl support
Proxy(java.net.InetAddress inetAddr, int port, int backlog, java.lang.String keyfile, char[] spass, char[] kpass)
          Creates a new Proxy with ssl support
 
Method Summary
 int getBacklog()
          Get the backlog, or number of awaiting requests to queue
 java.net.InetAddress getInetAddress()
          Get the address to listen for new requests on
 int getPort()
          Get the port to listen for new requests on
 boolean isRunning()
          is the server running?
static void main(java.lang.String[] args)
           
 void run()
           
 void setBacklog(int i)
          Set the backlog, or number of awaiting requests to queue
 void setInetAddress(java.net.InetAddress ia)
          Set the address to listen for new requests on
 void setPort(int i)
          Set the port to listen for new requests on
 void shutdown()
          stop the proxy server
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Proxy

public Proxy(java.net.InetAddress inetAddr,
             int port,
             int backlog,
             java.lang.String keyfile,
             char[] spass,
             char[] kpass)
Creates a new Proxy with ssl support


Proxy

public Proxy(java.net.InetAddress inetAddr,
             int port,
             int backlog)
Creates a new Proxy without ssl support

Method Detail

isRunning

public boolean isRunning()
is the server running?


shutdown

public void shutdown()
stop the proxy server


setInetAddress

public void setInetAddress(java.net.InetAddress ia)
Set the address to listen for new requests on


setPort

public void setPort(int i)
Set the port to listen for new requests on


setBacklog

public void setBacklog(int i)
Set the backlog, or number of awaiting requests to queue


getInetAddress

public java.net.InetAddress getInetAddress()
Get the address to listen for new requests on


getPort

public int getPort()
Get the port to listen for new requests on


getBacklog

public int getBacklog()
Get the backlog, or number of awaiting requests to queue


run

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

main

public static void main(java.lang.String[] args)

Java HTTP Proxy Library Project Page
SourceForge.net Logo