org.enhydra.servlet.connectionMethods.EnhydraDirector
Class EnhydraConnection
java.lang.Object
org.mortbay.http.HttpConnection
org.enhydra.servlet.connectionMethods.EnhydraDirector.EnhydraConnection
- All Implemented Interfaces:
- org.mortbay.util.OutputObserver
- public class EnhydraConnection
- extends org.mortbay.http.HttpConnection
- Author:
- Milin Radivoj
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
Fields inherited from class org.mortbay.http.HttpConnection |
_dotVersion, _keepAlive, _persistent |
Fields inherited from interface org.mortbay.util.OutputObserver |
__CLOSED, __CLOSING, __COMMITING, __FIRST_WRITE, __RESET_BUFFER |
Constructor Summary |
EnhydraConnection(EnhydraListener listener,
java.io.InputStream in,
java.io.OutputStream out,
java.net.Socket socket,
java.lang.String serverId)
|
Methods inherited from class org.mortbay.http.HttpConnection |
associateThread, close, disassociateThread, forceClose, getConnection, getDefaultScheme, getHttpServer, getHttpTunnel, getListener, getObject, getRemotePort, getServerAddr, handle, isThrottled, outputNotify, readRequest, recycle, service, setHttpTunnel, setObject, setThrottled, statsRequestEnd, statsRequestStart |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnhydraConnection
public EnhydraConnection(EnhydraListener listener,
java.io.InputStream in,
java.io.OutputStream out,
java.net.Socket socket,
java.lang.String serverId)
throws java.io.IOException
getRemoteInetAddress
public java.net.InetAddress getRemoteInetAddress()
- Get the Remote address.
- Returns:
- the remote address
destroy
public void destroy()
handleNext
public boolean handleNext()
getInputStream
public org.mortbay.http.HttpInputStream getInputStream()
- Get the connections InputStream.
- Returns:
- the connections InputStream
getOutputStream
public org.mortbay.http.HttpOutputStream getOutputStream()
- Get the connections OutputStream.
- Returns:
- the connections OutputStream
commit
protected void commit()
throws java.io.IOException
- Throws:
java.io.IOException
firstWrite
protected void firstWrite()
throws java.io.IOException
- Throws:
java.io.IOException
getRemoteAddr
public java.lang.String getRemoteAddr()
getRemoteHost
public java.lang.String getRemoteHost()
getServerName
public java.lang.String getServerName()
getServerPort
public int getServerPort()
getRequest
public org.mortbay.http.HttpRequest getRequest()
- Get the request.
- Returns:
- the request
getResponse
public org.mortbay.http.HttpResponse getResponse()
- Get the response.
- Returns:
- the response