Class ResourceMapper

All Implemented Interfaces:

A IRequestMapper to mount resources to a custom mount path
  • maps indexed parameters to path segments
  • maps named parameters to query string arguments or placeholder path segments
Sample structure of url

Sample usage

in your wicket application's init() method use a statement like this

 mountResource("/images", new ImagesResourceReference()));
Note: Mounted this way the resource reference has application scope, i.e. it is shared between all users of the application. It is recommended to not keep any state in it.
Peter Ertl
See Also: