public class DefaultUrlCodingStrategy extends RootMountedBookmarkablePageRequestTargetUrlCodingStrategy
| Constructor and Description |
|---|
DefaultUrlCodingStrategy(String mountPath,
Class<P> bookmarkablePageClass)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(String rawPath)
Determine whether the path is accepted by this URL coding strategy.
|
encodedecode, matches, toStringappendParameters, appendPathParameter, decodeParameters, getMountPath, matches, urlDecode, urlDecodePathComponent, urlDecodeQueryComponent, urlEncode, urlEncodePathComponent, urlEncodeQueryComponentpublic DefaultUrlCodingStrategy(String mountPath, Class<P> bookmarkablePageClass)
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.public boolean accepts(String rawPath)
RootMountedUrlCodingStrategyNote: for each request that is not handled by the regular wicket mounts, this method is called twice. Result caching is left to the implementation.
Note 2: there is no guarantee that this method is only invoked twice per request, there might be more.
Note 3: during the first invocation in a request,
Application.get(),
Session.get() and
RequestCycle.get() return null.
rawPath - the complete raw path (could be null or empty)
(See also RawPathUtil.)Copyright © 2013. All Rights Reserved.