org.apache.awf.web.http
Class HttpProtocol

java.lang.Object
  extended by org.apache.awf.web.http.HttpProtocol
All Implemented Interfaces:
IOHandler

public class HttpProtocol
extends Object
implements IOHandler


Constructor Summary
HttpProtocol(Application app)
           
HttpProtocol(IOLoop ioLoop, Application app)
           
 
Method Summary
 void closeOrRegisterForRead(SelectionKey key)
           
 IOLoop getIOLoop()
           
 void handleAccept(SelectionKey key)
           
 void handleConnect(SelectionKey key)
           
 void handleRead(SelectionKey key)
           
 void handleWrite(SelectionKey key)
           
 void prolongKeepAliveTimeout(SelectableChannel channel)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpProtocol

public HttpProtocol(Application app)

HttpProtocol

public HttpProtocol(IOLoop ioLoop,
                    Application app)
Method Detail

handleAccept

public void handleAccept(SelectionKey key)
                  throws IOException
Specified by:
handleAccept in interface IOHandler
Throws:
IOException

handleConnect

public void handleConnect(SelectionKey key)
                   throws IOException
Specified by:
handleConnect in interface IOHandler
Throws:
IOException

handleRead

public void handleRead(SelectionKey key)
                throws IOException
Specified by:
handleRead in interface IOHandler
Throws:
IOException

handleWrite

public void handleWrite(SelectionKey key)
Specified by:
handleWrite in interface IOHandler

closeOrRegisterForRead

public void closeOrRegisterForRead(SelectionKey key)

prolongKeepAliveTimeout

public void prolongKeepAliveTimeout(SelectableChannel channel)

getIOLoop

public IOLoop getIOLoop()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.