All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sics.agentbase.http.httpProxyServer

java.lang.Object
   |
   +----sics.agentbase.net.InternetServer
           |
           +----sics.agentbase.http.httpProxyServer

public class httpProxyServer
extends InternetServer
httpProxyServer implements a HTTP proxy server.


Constructor Index

 o httpProxyServer()
Starts up a HTTP server on any available port.
 o httpProxyServer(int)
Starts up a HTTP server on a specified port.
 o httpProxyServer(String, int)
Starts up a HTTP server on a specified port and host.

Method Index

 o handleConnection(Socket)
Handles a HTTP connection.
 o main(String[])
 o setFilter(HttpProxyFilter)

Constructors

 o httpProxyServer
 public httpProxyServer() throws IOException
Starts up a HTTP server on any available port.

 o httpProxyServer
 public httpProxyServer(int Port) throws IOException
Starts up a HTTP server on a specified port.

Parameters:
Port - the port that this server opens and listens to.
 o httpProxyServer
 public httpProxyServer(String host,
                        int Port) throws IOException
Starts up a HTTP server on a specified port and host.

Parameters:
host - the host that this server resides at.
Port - the port that this server opens and listens to.

Methods

 o setFilter
 public void setFilter(HttpProxyFilter fil)
 o handleConnection
 protected synchronized void handleConnection(Socket connection)
Handles a HTTP connection. Creates a HTTP Message from the connection and delivers the message using CentralFactory.

Parameters:
connection - the HTTP request connection.
Overrides:
handleConnection in class InternetServer
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index