Class ClientHelper

java.lang.Object
  |
  +--ClientHelper

public class ClientHelper
extends java.lang.Object

This is a helper class that rewrites an HTTP request from a user so that Pachyderm can identify the owner of the request. It is a simple proxy server itself. It is single-threaded and serves only one user. The user needs a login and a password to run this helper program. The helper will do the authentication via MySQL database. After that, the user can configure his browser so that all the request can be directed to the port on which this helper program is running.


Field Summary
protected static int uid
          owner's user id
protected static java.lang.String username
          owner's login name
 
Constructor Summary
ClientHelper()
           
 
Method Summary
static void main(java.lang.String[] args)
          The main method parses arguments and passes them to runServer
static void runServer(java.lang.String host, int remoteport, int localport)
          This method runs a single-threaded proxy server for host:remoteport on the specified local port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uid

protected static int uid
owner's user id

username

protected static java.lang.String username
owner's login name
Constructor Detail

ClientHelper

public ClientHelper()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
The main method parses arguments and passes them to runServer

runServer

public static void runServer(java.lang.String host,
                             int remoteport,
                             int localport)
                      throws java.io.IOException
This method runs a single-threaded proxy server for host:remoteport on the specified local port. It never returns.
Parameters:
host - the name of host.
remoteport - the id of remote port.
localport - the id of local port.