Package com.github.dandelion.core.web

Examples of com.github.dandelion.core.web.AssetRequestContext


    String strippedAttributeName = AttributesUtil.stripPrefix(attributeName, DandelionDialect.DIALECT_PREFIX);
    AssetAttributeNames assetsAttributeName = (AssetAttributeNames) AttributesUtil.find(strippedAttributeName,
        AssetAttributeNames.values());

    HttpServletRequest request = ArgumentsUtil.getWebContext(arguments).getHttpServletRequest();
    AssetRequestContext context = AssetRequestContext.get(request);
    switch (assetsAttributeName) {
    case JS_EXCLUDES:
      context.excludeJs(element.getAttributeValue(attributeName));
      break;
    case CSS_EXCLUDES:
      context.excludeCss(element.getAttributeValue(attributeName));
      break;
    }

    return ProcessorResult.ok();
  }
View Full Code Here


    String strippedAttributeName = AttributesUtil.stripPrefix(attributeName, DandelionDialect.DIALECT_PREFIX);
    BundleAttributeNames assetsAttributeName = (BundleAttributeNames) AttributesUtil.find(strippedAttributeName,
        BundleAttributeNames.values());

    HttpServletRequest request = ArgumentsUtil.getWebContext(arguments).getHttpServletRequest();
    AssetRequestContext context = AssetRequestContext.get(request);
    switch (assetsAttributeName) {
    case INCLUDES:
      context.addBundles(element.getAttributeValue(attributeName));
      break;
    case EXCLUDES:
      context.excludeBundles(element.getAttributeValue(attributeName));
      break;
    }

    return ProcessorResult.ok();
  }
View Full Code Here

TOP

Related Classes of com.github.dandelion.core.web.AssetRequestContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.