java.lang.Object
com.pixelservices.flash.components.http.routing.models.RouteEntry

public class RouteEntry extends Object
  • Constructor Details

  • Method Details

    • getMethod

      public HttpMethod getMethod()
    • getPath

      public String getPath()
    • getHandlerPool

      public HandlerPool<? extends RequestHandler> getHandlerPool()
    • getHandlerType

      public HandlerType getHandlerType()
    • getHandlerClass

      public Class<? extends RequestHandler> getHandlerClass()
    • isParameterized

      public boolean isParameterized()
    • isDynamic

      public boolean isDynamic()
    • getPathSegments

      public String[] getPathSegments()
      Returns the path segments for Trie traversal as String array.
    • getLiteralKey

      public String getLiteralKey()
      For literal routes, the key is simply "METHOD:/literal/path".
    • match

      public Map<String,String> match(String requestPath)
      Attempts to match the given requestPath. - For literal routes, only an exact match returns an empty map. - For parameterized or dynamic routes, the precompiled pattern is used. Returns an unmodifiable map of parameters if it matches, or null if it doesn't.