A {@link 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.
@see org.apache.wicket.protocol.http.WebApplication#mountResource(String,org.apache.wicket.request.resource.ResourceReference)
@author Peter Ertl