This documentation is for an old version of fiftyfive-wicket (2.0.9).


fiftyfive.wicket.resource
Class QueryStringSharedResourceRequestTargetUrlCodingStrategy

java.lang.Object
  extended by org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy
      extended by org.apache.wicket.request.target.coding.SharedResourceRequestTargetUrlCodingStrategy
          extended by fiftyfive.wicket.resource.QueryStringSharedResourceRequestTargetUrlCodingStrategy
All Implemented Interfaces:
IMountableRequestTargetUrlCodingStrategy, IRequestTargetUrlCodingStrategy

public class QueryStringSharedResourceRequestTargetUrlCodingStrategy
extends SharedResourceRequestTargetUrlCodingStrategy

An extension of SharedResourceRequestTargetUrlCodingStrategy that encodes request parameters as query string parameters, rather than path items. Uses code taken from Wicket's QueryStringUrlCodingStrategy.

This strategy is preferable to the standard SharedResourceRequestTargetUrlCodingStrategy because it means Wicket's last modified timestamps will be appended as query string parameters rather than additional path parameters.

I.e. resource will mount at layout.css?w:lm=123456789 rather than layout.css/w:lm/123456789.


Constructor Summary
QueryStringSharedResourceRequestTargetUrlCodingStrategy(String mountPath, String resourceKey)
           
 
Method Summary
protected  void appendParameters(AppendingStringBuffer url, Map parameters)
          Appends Wicket parameters as query string parameters.
 
Methods inherited from class org.apache.wicket.request.target.coding.SharedResourceRequestTargetUrlCodingStrategy
decode, encode, getResourceKey, matches, toString
 
Methods inherited from class org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy
appendPathParameter, decodeParameters, getMountPath, matches, 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

QueryStringSharedResourceRequestTargetUrlCodingStrategy

public QueryStringSharedResourceRequestTargetUrlCodingStrategy(String mountPath,
                                                               String resourceKey)
Method Detail

appendParameters

protected void appendParameters(AppendingStringBuffer url,
                                Map parameters)
Appends Wicket parameters as query string parameters. Overrides the default implementation, which is to append them as path items.

Overrides:
appendParameters in class AbstractRequestTargetUrlCodingStrategy


Copyright © 2011 55 Minutes. All Rights Reserved.