Example usage for org.apache.wicket.request IRequestMapper mapHandler

List of usage examples for org.apache.wicket.request IRequestMapper mapHandler

Introduction

In this page you can find the example usage for org.apache.wicket.request IRequestMapper mapHandler.

Prototype

Url mapHandler(IRequestHandler requestHandler);

Source Link

Document

Returns the Url for given IRequestHandler or null if the request handler is not recognized.

Usage

From source file:de.alpharogroup.wicket.base.request.mapper.HighScoreRequestMapper.java

License:Apache License

/**
 * {@inheritDoc}//  w  w  w .j  a va2  s  .  com
 */
@Override
public Url mapHandler(final IRequestHandler handler) {
    for (final IRequestMapper requestMapper : this.requestMappers) {
        final Url url = requestMapper.mapHandler(handler);
        if (url != null) {
            return url;
        }
    }
    return null;
}