org.apache.mina.examples.httpserver
Class HttpProtocolHandler

java.lang.Object
  extended by org.apache.mina.io.IoHandlerAdapter
      extended by org.apache.mina.io.handler.StreamIoHandler
          extended by 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: 210062 $, $Date: 2005-07-11 12:52:38 +0900 $
Author:
The Apache Directory Project (dev@directory.apache.org), Trustin Lee (trustin@apache.org)

Constructor Summary
HttpProtocolHandler()
           
 
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 org.apache.mina.io.handler.StreamIoHandler
dataRead, exceptionCaught, getReadTimeout, getWriteTimeout, sessionClosed, sessionIdle, sessionOpened, setReadTimeout, setWriteTimeout
 
Methods inherited from class org.apache.mina.io.IoHandlerAdapter
dataWritten, sessionCreated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpProtocolHandler

public HttpProtocolHandler()
Method Detail

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.