@Override @Nonnull public HstQueryBuilder sizeParam(final String parameterName) { String value = SiteUtils.getAnyParameter(parameterName, request, component); size = NumberUtils.toInt(value, SiteUtils.DEFAULT_PAGE_SIZE); return this; }
/** * Retrieves parameter, *any* means: * * <p>- first try to fetch namespaced parameter * * <p>- otherwise a public one * * <p>- otherwise component one * * @param request hst request instance * @param parameter name of the parameter * @return null if empty or undefined */ public String getAnyParameter(HstRequest request, String parameter) { return SiteUtils.getAnyParameter(parameter, request, this); }