Package spark.route

Class RouteEntry


  • class RouteEntry
    extends java.lang.Object
    Class that holds information about routes
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String acceptedType  
      (package private) HttpMethod httpMethod  
      (package private) java.lang.String path  
      (package private) java.lang.Object target  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) boolean matches​(HttpMethod httpMethod, java.lang.String path)  
      private boolean matchPath​(java.lang.String path)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • path

        java.lang.String path
      • acceptedType

        java.lang.String acceptedType
      • target

        java.lang.Object target
    • Constructor Detail

      • RouteEntry

        RouteEntry()
    • Method Detail

      • matches

        boolean matches​(HttpMethod httpMethod,
                        java.lang.String path)
      • matchPath

        private boolean matchPath​(java.lang.String path)
      • toString

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