public AssetRequestContext excludeJs(Collection<String> jsToExclude) { for (String js : jsToExclude) { excludeJs(js); } return this; }
public AssetRequestContext excludeCss(Collection<String> cssToExclude) { for (String css : cssToExclude) { excludeCss(css); } return this; }
/** * Add a parameter value on a specific asset name * * @param assetName * asset name * @param parameter * parameter * @param value * value * @return this context */ public AssetRequestContext addParameter(String assetName, String parameter, Object value) { return addParameter(assetName, parameter, value, false); }
public int doEndTag() throws JspException { AssetRequestContext.get(pageContext.getRequest()).addBundles(includes).excludeBundles(excludes); return EVAL_PAGE; }
public int doEndTag() throws JspException { AssetRequestContext.get(pageContext.getRequest()).excludeJs(jsExcludes); AssetRequestContext.get(pageContext.getRequest()).excludeCss(cssExcludes); return EVAL_PAGE; }
/** * <p> * Adds the given collection of bundles to the current * {@link AssetRequestContext}. * </p> * * @param bundles * A collection of bundle names. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext excludeBundles(Collection<String> bundles) { for (String bundle : bundles) { excludeBundles(bundle); } return this; }
/** * <p> * Adds the given collection of bundles to the current * {@link AssetRequestContext}. * </p> * * @param bundles * A collection of bundle names. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext addBundles(Collection<String> bundles) { for (String bundle : bundles) { addBundle(bundle); } return this; }
/** * Get the parameters for a asset name (as Object with toString()) * * @param assetName * asset name * @return the parameter of the asset name, or empty map */ public Map<String, Object> getParameters(Object assetName) { return getParameters(assetName.toString()); }
public int doEndTag() throws JspException { AssetRequestContext.get(pageContext.getRequest()).addBundles(includes).excludeBundles(excludes); return EVAL_PAGE; }
public int doEndTag() throws JspException { AssetRequestContext.get(pageContext.getRequest()).excludeJs(jsExcludes); AssetRequestContext.get(pageContext.getRequest()).excludeCss(cssExcludes); return EVAL_PAGE; }
/** * <p> * Adds the given collection of bundles to the current * {@link AssetRequestContext}. * </p> * * @param bundles * A collection of bundle names. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext excludeBundles(Collection<String> bundles) { for (String bundle : bundles) { excludeBundles(bundle); } return this; }
public AssetRequestContext excludeJs(Collection<String> jsToExclude) { for (String js : jsToExclude) { excludeJs(js); } return this; }
public AssetRequestContext excludeCss(Collection<String> cssToExclude) { for (String css : cssToExclude) { excludeCss(css); } return this; }
/** * Add a parameter value on a specific asset name * * @param assetName * asset name * @param parameter * parameter * @param value * value * @return this context */ public AssetRequestContext addParameter(String assetName, String parameter, Object value) { return addParameter(assetName, parameter, value, false); }
/** * <p> * Adds the given collection of bundles to the current * {@link AssetRequestContext}. * </p> * * @param bundles * A collection of bundle names. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext addBundles(Collection<String> bundles) { for (String bundle : bundles) { addBundle(bundle); } return this; }
/** * Get the parameters for a asset name (as Object with toString()) * * @param assetName * asset name * @return the parameter of the asset name, or empty map */ public Map<String, Object> getParameters(Object assetName) { return getParameters(assetName.toString()); }
/** * Add a parameter value on a specific asset name (as Object with toString()) * * @param assetName * asset name * @param parameter * parameter * @param value * value * @return this context */ public AssetRequestContext addParameter(Object assetName, String parameter, Object value) { return addParameter(assetName.toString(), parameter, value, false); }
/** * <p> * Adds the given array of enum to the current {@link AssetRequestContext}.* * </p> * <p> * All enums are first processed by replacing "_" by "-" and by lowercasing * its value. * </p> * * @param bundles * An array containing the enums. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext addBundles(Enum<?>... bundles) { for (Enum<?> bundle : bundles) { addBundle(bundle); } return this; }
/** * Add a parameter value on a specific asset name (as Object with toString()) * * @param assetName * asset name * @param parameter * parameter * @param value * value * @return this context */ public AssetRequestContext addParameter(Object assetName, String parameter, Object value) { return addParameter(assetName.toString(), parameter, value, false); }
/** * <p> * Adds the given array of enum to the current {@link AssetRequestContext}.* * </p> * <p> * All enums are first processed by replacing "_" by "-" and by lowercasing * its value. * </p> * * @param bundles * An array containing the enums. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext addBundles(Enum<?>... bundles) { for (Enum<?> bundle : bundles) { addBundle(bundle); } return this; }