3.2 Configuring a Snap

A snap is a normal WAB with the addition of two extra manifest headers. The first Snap-Host is used to resolve the WAB you want to act as a host for this snap. The second Snap-ContextPath gives the path the snap will answer to. In order to reach the snap a request must be made for the host's context path, plus any path in the host's Snaps filter followed by the path given with the Snap-ContextPath header.

Snap-Host: org.eclipse.virgo.snaps.sample.animal;version="${version:[=.=.=, =.+1)}"
Snap-ContextPath: /dog