public abstract class RootMountedBookmarkablePageRequestTargetUrlCodingStrategy extends org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy implements RootMountedUrlCodingStrategy
An internal 'fake' mount path is used to do URL routing within Wicket. The internal mount path is removed when the URL is encoded. It is therefore never visible outside the Wicket application.
Note that the original
BookmarkablePageRequestTargetUrlCodingStrategy.encode(org.apache.wicket.IRequestTarget)
is final and can therefore not be overridden here. Therefore, a patched version is needed.
| Modifier | Constructor and Description |
|---|---|
protected |
RootMountedBookmarkablePageRequestTargetUrlCodingStrategy(String mountPath,
Class<P> bookmarkablePageClass,
String pageMapName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
encode(org.apache.wicket.IRequestTarget requestTarget) |
decode, matches, toStringappendParameters, appendPathParameter, decodeParameters, getMountPath, matches, urlDecode, urlDecodePathComponent, urlDecodeQueryComponent, urlEncode, urlEncodePathComponent, urlEncodeQueryComponentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptsprotected RootMountedBookmarkablePageRequestTargetUrlCodingStrategy(String mountPath, Class<P> bookmarkablePageClass, String pageMapName)
P - type of target pagemountPath - the internal 'fake' mount path, its exact value does not matter as long as
it is a unique mount path in the entire application (not null)bookmarkablePageClass - type of target page (not null) See constructor of base class.pageMapName - the page map name or null for nonepublic CharSequence encode(org.apache.wicket.IRequestTarget requestTarget)
encode in interface org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategyencode in class org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategyCopyright © 2013. All Rights Reserved.