org.apache.wicket.request.target.coding
Class IndexedHybridUrlCodingStrategy

java.lang.Object
  extended by org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy
      extended by org.apache.wicket.request.target.coding.HybridUrlCodingStrategy
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.request.target.coding.HybridUrlCodingStrategy
HybridUrlCodingStrategy.HybridBookmarkablePageRequestTarget, HybridUrlCodingStrategy.PageInfo, HybridUrlCodingStrategy.PageInfoExtraction
 
Field Summary
 
Fields inherited from class org.apache.wicket.request.target.coding.HybridUrlCodingStrategy
PAGE_PARAMETERS_META_DATA_KEY, pageClassRef
 
Constructor Summary
IndexedHybridUrlCodingStrategy(java.lang.String mountPath, java.lang.Class pageClass)
          Construct.
 
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 org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy
getMountPath, urlDecode, urlDecodePathComponent, urlDecodeQueryComponent, urlEncode, urlEncodePathComponent, urlEncodeQueryComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexedHybridUrlCodingStrategy

public IndexedHybridUrlCodingStrategy(java.lang.String mountPath,
                                      java.lang.Class pageClass)
Construct.

Parameters:
mountPath -
pageClass -
Method Detail

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 far
parameters - 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 string
urlParameters - query string parameters
Returns:
Parameters created from the url fragment and query string


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.