net.sourceforge.apphere.proxy.rabbit
Class AppHereWebConnection

java.lang.Object
  extended byrabbit.io.WebConnection
      extended bynet.sourceforge.apphere.proxy.rabbit.AppHereWebConnection

public class AppHereWebConnection
extends WebConnection

Author:
Dewi Roberts http://www.essex.ac.uk/chimera This class does not use a socket to connect to a webserver, it loads the pages locally from the AppHere server AppHereWebConnection.java Created 09-Apr-2003 net.sourceforge.apphere.proxy.rabbit

Constructor Summary
AppHereWebConnection(java.net.InetAddress ia, int port, HTTPHeader header)
          Constructor for AppHereWebConnection.
 
Method Summary
 void close()
          Close the connection.
 java.io.InputStream load(java.net.URL u)
          Loads an url, including any headers
 
Methods inherited from class rabbit.io.WebConnection
chunked, dataSize, getChunkStream, getInetAddress, getInputStream, getKeepAlive, getOutputStream, getPort, getReleasedAt, setReleased, setReleased, writeHTTPHeader
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppHereWebConnection

public AppHereWebConnection(java.net.InetAddress ia,
                            int port,
                            HTTPHeader header)
                     throws java.io.IOException
Constructor for AppHereWebConnection.

Parameters:
ia -
port -
Throws:
java.io.IOException
Method Detail

load

public java.io.InputStream load(java.net.URL u)
                         throws java.io.IOException
Loads an url, including any headers

Throws:
java.io.IOException

close

public void close()
Description copied from class: WebConnection
Close the connection.

Overrides:
close in class WebConnection
See Also:
WebConnection.close()