Class SingleMatchResult

java.lang.Object
org.glassfish.jersey.server.internal.routing.SingleMatchResult
All Implemented Interfaces:
MatchResult

final class SingleMatchResult extends Object implements MatchResult
MatchResult implementation that returns the nested string as a single matching result. This match result mimics matching of a single matching group with group index 0 (the one containing the whole expression).
  • Field Details

    • path

      private final String path
  • Constructor Details

    • SingleMatchResult

      public SingleMatchResult(String path)
      Construct a match result matching the whole supplied path.
      Parameters:
      path - matched path.
  • Method Details

    • stripMatrixParams

      private static String stripMatrixParams(String path)
      Strip the matrix parameters from a path.
      Returns:
      path stripped of matrix parameters.
    • start

      public int start()
      Specified by:
      start in interface MatchResult
    • start

      public int start(int group)
      Specified by:
      start in interface MatchResult
    • end

      public int end()
      Specified by:
      end in interface MatchResult
    • end

      public int end(int group)
      Specified by:
      end in interface MatchResult
    • group

      public String group()
      Specified by:
      group in interface MatchResult
    • group

      public String group(int group)
      Specified by:
      group in interface MatchResult
    • groupCount

      public int groupCount()
      Specified by:
      groupCount in interface MatchResult