Package org.jboss.resteasy.specimpl
Class PathSegmentImpl
java.lang.Object
org.jboss.resteasy.specimpl.PathSegmentImpl
- All Implemented Interfaces:
PathSegment
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed when creating the matching path in ResteasyUriInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a map of the matrix parameters associated with the path segment.getPath()Get the path segment.booleanNOTE: Used for optimization in ResteasyUriInfostatic List<PathSegment>parseSegments(String path, boolean decode) static PathSegmentImpl.SegmentParseparseSegmentsOptimization(String path, boolean decode) toString()
-
Constructor Details
-
PathSegmentImpl
- Parameters:
segment- encoded path segmentdecode- 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
-
getPath
Description copied from interface:PathSegmentGet the path segment.- Specified by:
getPathin interfacePathSegment- Returns:
- the path segment
-
getMatrixParameters
Description copied from interface:PathSegmentGet a map of the matrix parameters associated with the path segment. The map keys are the names of the matrix parameters with any percent-escaped octets decoded.- Specified by:
getMatrixParametersin interfacePathSegment- Returns:
- the map of matrix parameters
- See Also:
-
toString
-
parseSegments
-
parseSegmentsOptimization
- Parameters:
path- encoded full pathdecode- whether or not to decode each segment- Returns:
PathSegmentImpl.SegmentParse
-