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.
-
httpProxyServer()
- Starts up a HTTP server on any available port.
-
httpProxyServer(int)
- Starts up a HTTP server on a specified port.
-
httpProxyServer(String, int)
- Starts up a HTTP server on a specified port and host.
-
handleConnection(Socket)
- Handles a HTTP connection.
-
main(String[])
-
-
setFilter(HttpProxyFilter)
-
httpProxyServer
public httpProxyServer() throws IOException
- Starts up a HTTP server on any available port.
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.
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.
setFilter
public void setFilter(HttpProxyFilter fil)
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
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index