org.apache.mina.examples.httpserver
Class HttpProtocolHandler
java.lang.Object
org.apache.mina.io.IoHandlerAdapter
org.apache.mina.io.handler.StreamIoHandler
org.apache.mina.examples.httpserver.HttpProtocolHandler
- All Implemented Interfaces:
- IoHandler
public class HttpProtocolHandler
- extends StreamIoHandler
A simplistic HTTP protocol handler that replies back the URL and headers
which a client requested.
- Version:
- $Rev: 357871 $, $Date: 2005-12-20 10:56:40 +0900 (Tue, 20 Dec 2005) $
- Author:
- The Apache Directory Project (dev@directory.apache.org)
Method Summary |
protected void |
processStreamIo(IoSession session,
InputStream in,
OutputStream out)
Implement this method to execute your stream I/O logic;
please note that you must forward the process request to other
thread or thread pool. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpProtocolHandler
public HttpProtocolHandler()
processStreamIo
protected void processStreamIo(IoSession session,
InputStream in,
OutputStream out)
- Description copied from class:
StreamIoHandler
- Implement this method to execute your stream I/O logic;
please note that you must forward the process request to other
thread or thread pool.
- Specified by:
processStreamIo
in class StreamIoHandler
Copyright © 2004-2005 . All Rights Reserved.