com.voidsearch.voidbase.http
Class HttpRequestDispatcher

java.lang.Object
  extended by com.voidsearch.voidbase.http.HttpRequestDispatcher
All Implemented Interfaces:
VoidBaseModule, java.lang.Runnable

public class HttpRequestDispatcher
extends java.lang.Object
implements VoidBaseModule


Field Summary
protected static org.slf4j.Logger logger
           
 
Constructor Summary
HttpRequestDispatcher()
           
 
Method Summary
 VoidBaseModuleResponse handle(VoidBaseModuleRequest request)
           
 void initialize(java.lang.String name)
           
 void run()
           
protected  void startHTTPServer(org.jboss.netty.channel.ChannelPipelineFactory handler, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger
Constructor Detail

HttpRequestDispatcher

public HttpRequestDispatcher()
Method Detail

initialize

public void initialize(java.lang.String name)
                throws VoidBaseModuleException
Specified by:
initialize in interface VoidBaseModule
Throws:
VoidBaseModuleException

run

public void run()
Specified by:
run in interface java.lang.Runnable

startHTTPServer

protected void startHTTPServer(org.jboss.netty.channel.ChannelPipelineFactory handler,
                               int port)
                        throws VoidBaseModuleException
Throws:
VoidBaseModuleException

handle

public VoidBaseModuleResponse handle(VoidBaseModuleRequest request)
                              throws VoidBaseModuleException
Specified by:
handle in interface VoidBaseModule
Throws:
VoidBaseModuleException


Copyright © 2009. All Rights Reserved.