org.shiftone.jrat.http
Class Dispatcher

java.lang.Object
  extended by org.shiftone.jrat.http.Dispatcher
All Implemented Interfaces:
Handler

public class Dispatcher
extends java.lang.Object
implements Handler

Author:
jeff@shiftone.org (Jeff Drost)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.shiftone.jrat.http.Handler
Handler.ContentType
 
Constructor Summary
Dispatcher(java.lang.String title)
           
 
Method Summary
 void addRoute(java.lang.String path, Handler handler)
           
 void handle(Request request, Response response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dispatcher

public Dispatcher(java.lang.String title)
Method Detail

addRoute

public void addRoute(java.lang.String path,
                     Handler handler)

handle

public void handle(Request request,
                   Response response)
            throws java.lang.Exception
Specified by:
handle in interface Handler
Throws:
java.lang.Exception