Class MapperUtils
- java.lang.Object
-
- org.apache.wicket.core.request.mapper.MapperUtils
-
public class MapperUtils extends java.lang.ObjectUtility class that performs common functions used byIRequestMappers.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.wicket.request.mapper.info.PageComponentInfogetPageComponentInfo(org.apache.wicket.request.Url url)Extracts thePageComponentInfofrom the URL.static org.apache.wicket.request.mapper.info.PageComponentInfoparsePageComponentInfoParameter(org.apache.wicket.request.Url.QueryParameter parameter)Attempts to parse aUrl.QueryParameterwhich may holdPageComponentInfo.
-
-
-
Method Detail
-
parsePageComponentInfoParameter
public static org.apache.wicket.request.mapper.info.PageComponentInfo parsePageComponentInfoParameter(org.apache.wicket.request.Url.QueryParameter parameter)
Attempts to parse aUrl.QueryParameterwhich may holdPageComponentInfo.- Parameters:
parameter- TheUrl.QueryParameterto parse.- Returns:
- The parsed
PageComponentInfo, ornullif the parameter could not be parsed.
-
getPageComponentInfo
public static org.apache.wicket.request.mapper.info.PageComponentInfo getPageComponentInfo(org.apache.wicket.request.Url url)
Extracts thePageComponentInfofrom the URL. ThePageComponentInfois 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,
nullotherwise.
-
-