public class ParameterUtils extends Object
Modifier and Type | Field and Description |
---|---|
static HstParameterValueConverter |
DEFAULT_HST_PARAMETER_VALUE_CONVERTER |
static String |
ISO_DATE_FORMAT
ISO8601 formatter for date without time zone.
|
static String |
ISO_DATETIME_FORMAT
ISO8601 formatter for date-time without time zone.
|
static String |
ISO_TIME_FORMAT
ISO8601 formatter for time without time zone.
|
static String |
PARAMETERS_INFO_ATTRIBUTE |
Constructor and Description |
---|
ParameterUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
getParametersInfo(HstComponent component,
ComponentConfiguration componentConfig,
HstRequest request)
Returns a proxy ParametersInfo object for the component class which resolves parameter from
HstComponentConfiguration : resolved means that possible property placeholders like ${1} or ${year}, where the
first refers to the first wildcard matcher in a resolved sitemap item, and the latter to a resolved parameter in
the resolved HstSiteMapItem
NOTE: Because the returned ParametersInfo proxy instance is bound to the current request, you MUST NOT store
the returned object in a member variable or session.
|
public static final String PARAMETERS_INFO_ATTRIBUTE
public static final String ISO_DATETIME_FORMAT
public static final String ISO_DATE_FORMAT
public static final String ISO_TIME_FORMAT
public static final HstParameterValueConverter DEFAULT_HST_PARAMETER_VALUE_CONVERTER
public static <T> T getParametersInfo(HstComponent component, ComponentConfiguration componentConfig, HstRequest request)
component
- the HST component with a ParameterInfo annotationcomponentConfig
- the HST component configurationrequest
- the HST requestnull if not present
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.