Este conteúdo não está disponível no idioma selecionado.

Chapter 7. @MatrixParam


Matrix parameters are an arbitrary set of name-value pairs embedded in a URI path segment. An example of a matrix parameter is:
GET http://host.com/library/book;name=EJB 3.0;author=Bill Burke
Copy to Clipboard Toggle word wrap
Matrix parameters represent resources that can be addressed by their attributes as well as their raw ID. The @MatrixParam annotation lets you injext URI matrix parameters into your method invocation.
   @GET
   public String getBook(@MatrixParam("name") String name, @MatrixParam("author") String author) {...}
Copy to Clipboard Toggle word wrap
One limitation with @MatrixParam is that the current version of the specification does not resolve. If, for example, the same MatrixParam exists simultaneously in different path segments, at present we recommend using PathParam combined with PathSegment.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat