encoder.addValue(WebRequestCodingStrategy.BOOKMARKABLE_PAGE_PARAMETER_NAME,
pageMapName + Component.PATH_SEPARATOR + pageClass.getName());
}
// Get page parameters
final PageParameters parameters = requestTarget.getPageParameters();
if (parameters != null)
{
final Iterator iterator;
if (UnitTestSettings.getSortUrlParameters())
{
iterator = new TreeSet(parameters.keySet()).iterator();
}
else
{
iterator = parameters.keySet().iterator();
}
while (iterator.hasNext())
{
final String key = (String)iterator.next();
final String values[] = parameters.getStringArray(key);
if (values != null)
{
for (int i = 0; i < values.length; i++)
{
encoder.addValue(key, values[i]);