public class HighScoreRequestMapper
extends org.apache.wicket.request.mapper.CompoundRequestMapper
IRequestMapper with request mappers, orders by the compatibility score they were
added.
For instance:
public class WicketApplication extends WebApplication
{
..
public void init()
{
...
// install crypto mapper to encrypt all application urls
getSecuritySettings().setCryptFactory(new KeyInSessionSunJceCryptFactory());
setRootRequestMapper(new HighScoreRequestMapper().register(new CryptoMapper(getRootRequestMapper(), this)));
...
}
...
}
| Constructor and Description |
|---|
HighScoreRequestMapper()
Instantiates a new
HighScoreRequestMapper. |
HighScoreRequestMapper(List<org.apache.wicket.request.IRequestMapper> requestMappers)
Instantiates a new
HighScoreRequestMapper. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCompatibilityScore(org.apache.wicket.request.Request request) |
org.apache.wicket.request.Url |
mapHandler(org.apache.wicket.request.IRequestHandler handler) |
org.apache.wicket.request.IRequestHandler |
mapRequest(org.apache.wicket.request.Request request) |
protected Comparator<RequestMapperBean> |
newComparator()
Factory method for creating a new Comparator for sort the compatibility score.
|
HighScoreRequestMapper |
register(org.apache.wicket.request.IRequestMapper encoder)
Register.
|
HighScoreRequestMapper |
unregister(org.apache.wicket.request.IRequestMapper encoder)
Unregister.
|
add, iterator, remove, unmountclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic HighScoreRequestMapper()
HighScoreRequestMapper.public HighScoreRequestMapper(List<org.apache.wicket.request.IRequestMapper> requestMappers)
HighScoreRequestMapper.requestMappers - the request mapperspublic int getCompatibilityScore(org.apache.wicket.request.Request request)
getCompatibilityScore in interface org.apache.wicket.request.IRequestMappergetCompatibilityScore in class org.apache.wicket.request.mapper.CompoundRequestMapperpublic org.apache.wicket.request.Url mapHandler(org.apache.wicket.request.IRequestHandler handler)
mapHandler in interface org.apache.wicket.request.IRequestMappermapHandler in class org.apache.wicket.request.mapper.CompoundRequestMapperpublic org.apache.wicket.request.IRequestHandler mapRequest(org.apache.wicket.request.Request request)
mapRequest in interface org.apache.wicket.request.IRequestMappermapRequest in class org.apache.wicket.request.mapper.CompoundRequestMapperprotected Comparator<RequestMapperBean> newComparator()
public HighScoreRequestMapper register(org.apache.wicket.request.IRequestMapper encoder)
encoder - the encoderpublic HighScoreRequestMapper unregister(org.apache.wicket.request.IRequestMapper encoder)
encoder - the encoderCopyright © 2010–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.