Class ResourceMapper

All Implemented Interfaces:
IRequestMapper

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

    /myresources/${category}/images/[indexed-param-0]/[indexed-param-1]?[named-param-1=value]&[named-param-2=value2]
 
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.
Author:
Peter Ertl
See Also: