Class PathSegmentImpl

java.lang.Object
org.jboss.resteasy.specimpl.PathSegmentImpl
All Implemented Interfaces:
jakarta.ws.rs.core.PathSegment

public class PathSegmentImpl extends Object implements jakarta.ws.rs.core.PathSegment
Version:
$Revision: 1 $
Author:
Bill Burke
  • Constructor Details

    • PathSegmentImpl

      public PathSegmentImpl(String segment, boolean decode)
      Parameters:
      segment - encoded path segment
      decode - whether or not to decode values
  • Method Details

    • hasMatrixParams

      public boolean hasMatrixParams()
      NOTE: Used for optimization in ResteasyUriInfo
      Returns:
      true if path segment contains matrix parameters
    • getOriginal

      public String getOriginal()
    • getPath

      public String getPath()
      Specified by:
      getPath in interface jakarta.ws.rs.core.PathSegment
    • getMatrixParameters

      public jakarta.ws.rs.core.MultivaluedMap<String,String> getMatrixParameters()
      Specified by:
      getMatrixParameters in interface jakarta.ws.rs.core.PathSegment
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • parseSegments

      public static List<jakarta.ws.rs.core.PathSegment> parseSegments(String path, boolean decode)
    • parseSegmentsOptimization

      public static PathSegmentImpl.SegmentParse parseSegmentsOptimization(String path, boolean decode)
      Parameters:
      path - encoded full path
      decode - whether or not to decode each segment
      Returns:
      PathSegmentImpl.SegmentParse