Package jakarta.ws.rs.core
Interface PathSegment
-
public interface PathSegmentRepresents a URI path segment and any associated matrix parameters. When an instance of this type is injected withPathParam, the value of the annotation identifies which path segment is selected and the presence of anEncodedannotation will result in an instance that supplies the path and matrix parameter values in URI encoded form.- Since:
- 1.0
- Author:
- Paul Sandoz, Marc Hadley
- See Also:
UriInfo.getPathSegments(),PathParam
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MultivaluedMap<String,String>getMatrixParameters()Get a map of the matrix parameters associated with the path segment.StringgetPath()Get the path segment.
-
-
-
Method Detail
-
getPath
String getPath()
Get the path segment.- Returns:
- the path segment
-
getMatrixParameters
MultivaluedMap<String,String> getMatrixParameters()
Get 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.- Returns:
- the map of matrix parameters
- See Also:
- Matrix URIs
-
-