org.apache.wicket.request.target.coding
Class IndexedHybridUrlCodingStrategy
java.lang.Object
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy
org.apache.wicket.request.target.coding.HybridUrlCodingStrategy
org.apache.wicket.request.target.coding.IndexedHybridUrlCodingStrategy
- All Implemented Interfaces:
- IMountableRequestTargetUrlCodingStrategy, IRequestTargetUrlCodingStrategy
public class IndexedHybridUrlCodingStrategy
- extends HybridUrlCodingStrategy
HybridUrlCodingStrategy subclass that encodes the parameters in an indexed way like
IndexedParamUrlCodingStrategy does.
- Author:
- Matej Knopp
| Methods inherited from class org.apache.wicket.request.target.coding.HybridUrlCodingStrategy |
addPageInfo, alwaysRedirectWhenPageMapIsSpecified, decode, encode, extractPageInfo, getBeginSeparator, getEndSeparator, getInitialPagePageParameters, handleExpiredPage, isRedirectOnBookmarkableRequest, matches, matches, setInitialPageParameters, toString, urlDecodePathComponent, urlEncodePathComponent |
IndexedHybridUrlCodingStrategy
public IndexedHybridUrlCodingStrategy(String mountPath,
Class pageClass)
- Construct.
- Parameters:
mountPath - pageClass -
IndexedHybridUrlCodingStrategy
public IndexedHybridUrlCodingStrategy(String mountPath,
Class pageClass,
boolean redirectOnBookmarkableRequest)
- Construct.
- Parameters:
mountPath - pageClass - redirectOnBookmarkableRequest - whether after hitting the page with URL in bookmarkable form it should be
redirected to hybrid URL - needed for ajax to work properly after page refresh
appendParameters
protected void appendParameters(AppendingStringBuffer url,
Map parameters)
- Description copied from class:
AbstractRequestTargetUrlCodingStrategy
- Encodes Map into a url fragment and append that to the provided url buffer.
- Overrides:
appendParameters in class AbstractRequestTargetUrlCodingStrategy
- Parameters:
url - url so farparameters - Map object to be encoded
decodeParameters
protected ValueMap decodeParameters(String urlFragment,
Map urlParameters)
- Description copied from class:
AbstractRequestTargetUrlCodingStrategy
- Decodes parameters object from the provided url fragment
- Overrides:
decodeParameters in class AbstractRequestTargetUrlCodingStrategy
- Parameters:
urlFragment - fragment of the url after the decoded path and before the query stringurlParameters - query string parameters
- Returns:
- Parameters created from the url fragment and query string
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.