dfischer.femtowebserver.httpd
Class HttpdConnection
java.lang.Object
|
+--dfischer.femtowebserver.httpd.HttpdConnection
- Direct Known Subclasses:
- HttpdSocketConnection
- public abstract class HttpdConnection
- extends java.lang.Object
Represents a network protocol independent client connection to the Femto Web Server.
Every class which implements the HttpdConnectionAdapterInterface returns as
result of the method getNextConnection() a new instance
of a HttpdConnection.
- See Also:
HttpdConnectionAdapterInterface,
HttpdSocketConnection
|
Method Summary |
abstract void |
closeConnection()
Closes/terminates the client connection. |
abstract java.lang.String |
getClientAddress()
Returns the identification of the remote host from which the request has been started. |
abstract java.io.InputStream |
getInputStream()
Returns the input stream of the new client connection. |
abstract java.io.OutputStream |
getOutputStream()
Returns the output stream of the new client connection. |
abstract java.lang.String |
getProtocol()
Returns the network protocol-name of the new client connection ("http", "https", ...) |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpdConnection
public HttpdConnection()
getInputStream
public abstract java.io.InputStream getInputStream()
throws java.io.IOException
- Returns the input stream of the new client connection.
getOutputStream
public abstract java.io.OutputStream getOutputStream()
throws java.io.IOException
- Returns the output stream of the new client connection.
getProtocol
public abstract java.lang.String getProtocol()
throws java.io.IOException
- Returns the network protocol-name of the new client connection ("http", "https", ...)
getClientAddress
public abstract java.lang.String getClientAddress()
throws java.io.IOException
- Returns the identification of the remote host from which the request has been started. If
TCP/IP is used as network protocol the remote IP Address is returned.
closeConnection
public abstract void closeConnection()
throws java.io.IOException
- Closes/terminates the client connection.
Copyright 2002, 2003, 2006 by Ingenieurbüro David Fischer GmbH, Switzerland. All rights reserved.