org.resthub.web.springmvc.router
Class Router.Route

java.lang.Object
  extended by org.resthub.web.springmvc.router.Router.Route
Enclosing class:
Router

public static class Router.Route
extends Object


Nested Class Summary
static class Router.Route.Arg
           
 
Field Summary
 String action
           
 String method
          HTTP method, e.g.
 String path
           
 String routesFile
           
 int routesFileLine
           
 
Constructor Summary
Router.Route()
           
 
Method Summary
 void addFormat(String params)
           
 void addParams(String params)
           
 void compute()
           
 String getAction()
           
 List<Router.Route.Arg> getArgs()
           
 String getHost()
           
 String getMethod()
           
 String getPath()
           
 Map<String,String> matches(String method, String path)
           
 Map<String,String> matches(String method, String path, String accept)
           
 Map<String,String> matches(String method, String path, String accept, String domain)
          Check if the parts of a HTTP request equal this Route.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

method

public String method
HTTP method, e.g. "GET".


path

public String path

action

public String action

routesFileLine

public int routesFileLine

routesFile

public String routesFile
Constructor Detail

Router.Route

public Router.Route()
Method Detail

getAction

public String getAction()

getHost

public String getHost()

getMethod

public String getMethod()

getPath

public String getPath()

getArgs

public List<Router.Route.Arg> getArgs()

compute

public void compute()

addParams

public void addParams(String params)

addFormat

public void addFormat(String params)

matches

public Map<String,String> matches(String method,
                                  String path)

matches

public Map<String,String> matches(String method,
                                  String path,
                                  String accept)

matches

public Map<String,String> matches(String method,
                                  String path,
                                  String accept,
                                  String domain)
Check if the parts of a HTTP request equal this Route.

Parameters:
method - GET/POST/etc.
path - Part after domain and before query-string. Starts with a "/".
accept - Format, e.g. html.
host - AKA the domain.
Returns:
???

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012. All Rights Reserved.