org.apache.wicket.core.request.mapper
Class MapperUtils

java.lang.Object
  extended by org.apache.wicket.core.request.mapper.MapperUtils

public class MapperUtils
extends Object

Utility class that performs common functions used by IRequestMappers.


Method Summary
static PageComponentInfo getPageComponentInfo(Url url)
          Extracts the PageComponentInfo from the URL.
static PageComponentInfo parsePageComponentInfoParameter(Url.QueryParameter parameter)
          Attempts to parse a Url.QueryParameter which may hold PageComponentInfo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parsePageComponentInfoParameter

public static PageComponentInfo parsePageComponentInfoParameter(Url.QueryParameter parameter)
Attempts to parse a Url.QueryParameter which may hold PageComponentInfo.

Parameters:
parameter - The Url.QueryParameter to parse.
Returns:
The parsed PageComponentInfo, or null if the parameter could not be parsed.

getPageComponentInfo

public static PageComponentInfo getPageComponentInfo(Url url)
Extracts the PageComponentInfo from the URL. The PageComponentInfo is encoded as the very first query parameter and the parameter consists of name only (no value).

Parameters:
url -
Returns:
PageComponentInfo instance if one was encoded in URL, null otherwise.


Copyright © 2006–2015 Apache Software Foundation. All rights reserved.