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
Method Summary |
protected void |
appendParameters(AppendingStringBuffer url,
java.util.Map parameters)
Encodes Map into a url fragment and append that to the provided url buffer. |
protected ValueMap |
decodeParameters(java.lang.String urlFragment,
java.util.Map urlParameters)
Decodes parameters object from the provided url fragment |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IndexedHybridUrlCodingStrategy
public IndexedHybridUrlCodingStrategy(java.lang.String mountPath,
java.lang.Class pageClass)
- Construct.
- Parameters:
mountPath
- pageClass
-
IndexedHybridUrlCodingStrategy
public IndexedHybridUrlCodingStrategy(java.lang.String mountPath,
java.lang.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,
java.util.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(java.lang.String urlFragment,
java.util.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-2009 Apache Software Foundation. All Rights Reserved.