org.apache.awf.web.http
Class HttpProtocol
java.lang.Object
org.apache.awf.web.http.HttpProtocol
- All Implemented Interfaces:
- IOHandler
public class HttpProtocol
- extends Object
- implements IOHandler
HttpProtocol
public HttpProtocol(Application app)
HttpProtocol
public HttpProtocol(IOLoop ioLoop,
Application app)
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.