Class MapperUtils
- java.lang.Object
-
- org.apache.wicket.core.request.mapper.MapperUtils
-
public class MapperUtils extends Object
Utility class that performs common functions used byIRequestMapper
s.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PageComponentInfo
getPageComponentInfo(Url url)
Extracts thePageComponentInfo
from the URL.static PageComponentInfo
parsePageComponentInfoParameter(Url.QueryParameter parameter)
Attempts to parse aUrl.QueryParameter
which may holdPageComponentInfo
.
-
-
-
Method Detail
-
parsePageComponentInfoParameter
public static PageComponentInfo parsePageComponentInfoParameter(Url.QueryParameter parameter)
Attempts to parse aUrl.QueryParameter
which may holdPageComponentInfo
.- Parameters:
parameter
- TheUrl.QueryParameter
to parse.- Returns:
- The parsed
PageComponentInfo
, ornull
if the parameter could not be parsed.
-
getPageComponentInfo
public static PageComponentInfo getPageComponentInfo(Url url)
Extracts thePageComponentInfo
from the URL. ThePageComponentInfo
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.
-
-