Interface PathSegment


  • public interface PathSegment
    Represents a URI path segment and any associated matrix parameters. When an instance of this type is injected with javax.ws.rs.PathParam, the value of the annotation identifies which path segment is selected and the presence of an javax.ws.rs.Encoded annotation will result in an instance that supplies the path and matrix parameter values in URI encoded form.
    Author:
    Paul Sandoz, Marc Hadley
    • Method Detail

      • getPath

        java.lang.String getPath()
        Get the path segment.
        Returns:
        the path segment
      • getMatrixParameters

        MultivaluedMap<java.lang.String,​java.lang.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