Top Description Methods
javax.ws.rs.core

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.
Authors
Paul Sandoz, Marc Hadley
Since
1.0
See Also
UriInfo#getPathSegments, javax.ws.rs.PathParam

Method Summary

Modifier and TypeMethod and Description
public MultivaluedMap<String, String>

Returns:

the map of matrix parameters
getMatrixParameters
()

Get a map of the matrix parameters associated with the path segment.

public String

Returns:

the path segment
getPath
()

Get the path segment.

Method Detail

getMatrixParametersback to summary
public 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:MultivaluedMap<String, String>

the map of matrix parameters

See Also
Matrix URIs
getPathback to summary
public String getPath()

Get the path segment.

Returns:String

the path segment