org.webbitserver.handler
Class PathMatchHandler

java.lang.Object
  extended by org.webbitserver.handler.PathMatchHandler
All Implemented Interfaces:
HttpHandler

public class PathMatchHandler
extends Object
implements HttpHandler


Constructor Summary
PathMatchHandler(Pattern pathPattern, HttpHandler httpHandler)
           
PathMatchHandler(String path, HttpHandler httpHandler)
           
 
Method Summary
 void handleHttpRequest(HttpRequest request, HttpResponse response, HttpControl control)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathMatchHandler

public PathMatchHandler(Pattern pathPattern,
                        HttpHandler httpHandler)

PathMatchHandler

public PathMatchHandler(String path,
                        HttpHandler httpHandler)
Method Detail

handleHttpRequest

public void handleHttpRequest(HttpRequest request,
                              HttpResponse response,
                              HttpControl control)
                       throws Exception
Specified by:
handleHttpRequest in interface HttpHandler
Throws:
Exception


Copyright © 2013. All Rights Reserved.