Questo contenuto non è disponibile nella lingua selezionata.

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
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) {...}
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.
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2026 Red Hat
Torna in cima