@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); }
public boolean getAnyBooleanParam(HstRequest request, String parameter, boolean defaultValue) { return SiteUtils.getAnyBooleanParam(request, parameter, defaultValue, this); }
public int getAnyIntParameter(HstRequest request, String parameter, int defaultValue) { return SiteUtils.getAnyIntParameter(request, parameter, defaultValue, this); }