Details
Description
If one want to extends CryptoMapper and reuse the core logic in CryptoMapper, it is today not possible, since the below methods are private and not protected
org.apache.wicket.core.request.mapper.CryptoMapper#encryptUrl(Url)
org.apache.wicket.core.request.mapper.CryptoMapper#decryptUrl(Request, Url)
These methods are used in the below and these are typically the one wanted to extends.
org.apache.wicket.core.request.mapper.CryptoMapper#mapHandler(IRequestHandler)
org.apache.wicket.core.request.mapper.CryptoMapper#mapRequest(Request
------------------------------------------
Background for wanting to extends.
------------------------------------------
I'm using url security constraint in my web.xml and I need to preserve the url prefix when encrypting the url with CryptoMapper.
Example:
<security-constraint>
<web-resource-collection>
<web-resource-name>example-wicket</web-resource-name>
<url-pattern>/user/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<description>These are the roles who have access.</description>
<role-name>ROLE_USER</role-name>
<role-name>ROLE_ADMIN</role-name>
</auth-constraint>
</security-constraint>
I used to mount pages with mountPage("/user/" + Foo.class.getSimpleName(), Foo.class);
which resulted in URL: http://localhost:8080/example-wicket/user/Foo
now I would like to decrypt Foo and it's possible page parameters, but not 'user', e.g.