1. Domino REST
  2. Rest clients
  3. Matrix parameters

Matrix parameters

Domino REST supports matrix parameters on path segments. Use @MatrixParam to bind values like /movies;lang=en;region=eu to method arguments, keeping them separate from query parameters.

			@RequestFactory
@Path("library/movies")
public interface MoviesService {

    @Path(":movieId")
    @GET
    Movie getMovie(
        @PathParam("movieId") String movieId,
        @MatrixParam("lang") String language,
        @MatrixParam("region") String region);
}

// Resulting call example:
// GET /library/movies/123;lang=en;region=eu

		

Matrix parameters are appended to the path segment they belong to. When combined with other annotations (e.g., @QueryParam, @HeaderParam), Domino REST keeps each binding type separated and renders them in the correct location.

We are a group of passionate people who love what we do

Donate & Support Us