com.khubla.pragmatach.framework.router
Class RouteFinder

java.lang.Object
  extended by com.khubla.pragmatach.framework.router.RouteFinder

public class RouteFinder
extends Object

Author:
tome

Constructor Summary
RouteFinder()
           
 
Method Summary
 LinkedHashMap<String,String> getParameterMap()
           
 PragmatachRoute getPragmatachRoute()
           
 boolean match(Request request)
          Match route.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteFinder

public RouteFinder()
Method Detail

getParameterMap

public LinkedHashMap<String,String> getParameterMap()

getPragmatachRoute

public PragmatachRoute getPragmatachRoute()

match

public boolean match(Request request)
              throws PragmatachException
Match route. Returns true if a matching route was found.

 There are multiple criteria for matching.  
 1 - Every part of the URI must match the name or regex
 2 - Values must be provided for each method signature variable
 

Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.