Package play.mvc

Class Router.Route

  • Enclosing class:
    Router

    public static class Router.Route
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Route​(java.lang.String method, java.lang.String path, java.lang.String action, java.lang.String sourceFile, int line)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> matches​(java.lang.String method, java.lang.String path)
      Check if the parts of a HTTP request equal this Route.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • method

        public final java.lang.String method
      • path

        public final java.lang.String path
      • action

        public final java.lang.String action
      • routesFile

        public final java.lang.String routesFile
      • routesFileLine

        public final int routesFileLine
    • Constructor Detail

      • Route

        public Route​(java.lang.String method,
                     java.lang.String path,
                     java.lang.String action,
                     java.lang.String sourceFile,
                     int line)
    • Method Detail

      • matches

        public java.util.Map<java.lang.String,​java.lang.String> matches​(java.lang.String method,
                                                                              java.lang.String path)
        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 "/".
        Returns:
        route args or null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object