Class PathParams

java.lang.Object
dev.relism.flash.models.PathParams

public class PathParams extends Object
Path parameters captured during routing, stored as byte offsets into the path view. get(java.lang.String) allocates a String on call; view(java.lang.String) is zero-copy.
  • Constructor Details

    • PathParams

      public PathParams(dev.relism.fpr.core.ByteView source, String[] names, int[] starts, int[] lens)
  • Method Details

    • inject

      public static void inject(Request request, PathParams params)
      Injects path parameters into a request. The cross-package bridge from AbstractRouter — keeps Request.setPathParams(dev.relism.flash.models.PathParams) package-private while allowing the router to set params without a public setter.
    • get

      public String get(String name)