kaos.ontology.damlProxy
Class Proxy

java.lang.Object
  extended by kaos.ontology.damlProxy.Proxy

public class Proxy
extends java.lang.Object

The file is based on the code developed by BBN for the CoAX experiment Original package com.bbn.abs.daml; ----- Simple single-threaded HTTP proxy. --------------------------- Catches all GET requests and tries to service them with its local files. Any request it cant service will result in a 404 error response. To service the requests: 1) Check the hashtable of URL -> files. This table is created from a text file, set by the -tableFile command line param. 2) Strip the URL of everything but the filename, and append a .daml if no extension is there. Check the base file directory (specified by the -fileDir command line param).


Constructor Summary
Proxy()
           
Proxy(java.lang.String[] args)
           
Proxy(java.lang.String fileDir, java.lang.String tableFile, int port)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run()
           
static void setupTable(java.util.Hashtable table, java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Proxy

public Proxy()

Proxy

public Proxy(java.lang.String fileDir,
             java.lang.String tableFile,
             int port)

Proxy

public Proxy(java.lang.String[] args)
Method Detail

main

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

run

public void run()

setupTable

public static void setupTable(java.util.Hashtable table,
                              java.lang.String fileName)