Package org.bladerunnerjs.model.exception.request

Examples of org.bladerunnerjs.model.exception.request.ContentProcessingException


      {
        propertiesMap.putAll( i18nFile.getLocaleProperties() );
      }
      catch (IOException | RequirePathException | NamespaceException ex)
      {
        throw new ContentProcessingException(ex, "Error getting locale properties from file");
      }
    }
  }
View Full Code Here


          String replaced =  htmlContent.replace(xmlBundlePathToken, bundlePath);
          readerList.add(new StringReader(replaced));
        }
      }
      catch (IOException | NamespaceException | RequirePathException e) {
        throw new ContentProcessingException(e, "Error while bundling asset '" + htmlAsset.getAssetPath() + "'.");
      }
    }
   
    return new CharResponseContent( brjs, readerList );   
  }
View Full Code Here

            "window.$BRJS_LOCALE_COOKIE_NAME = '"+app.appConf().getLocaleCookieName()+"';\n" +
            "window.$BRJS_APP_LOCALES = {'" + Joiner.on("':true, '").join(app.appConf().getLocales()) + "':true};\n" );
      }
      catch (ConfigException ex)
      {
        throw new ContentProcessingException(ex);
      }
    }
    else
    {
      throw new ContentProcessingException("unknown request form '" + contentPath.formName + "'.");
    }
  }
View Full Code Here

    {
      return Arrays.asList( contentPathParser.createRequest(APP_META_REQUEST) );
    }
    catch (MalformedTokenException e)
    {
      throw new ContentProcessingException(e);
    }
  }
View Full Code Here

    {
      return getValidContentPaths(bundleSet, locales);
    }
    catch (MalformedTokenException | ConfigException ex)
    {
      throw new ContentProcessingException(ex);
    }
  }
View Full Code Here

    {
      return getValidContentPaths(bundleSet, locales);
    }
    catch (MalformedTokenException | ConfigException ex)
    {
      throw new ContentProcessingException(ex);
    }
  }
View Full Code Here

          new StringReader("\n\n"),
          new StringReader(getGlobalisedThirdpartyModuleContent(jsModule, hasUnencapsulatedSourceModule))
        );
      }
      else {
        throw new ContentProcessingException("unknown request form '" + contentPath.formName + "'.");
      }
    }
    catch(RequirePathException  | IOException ex) {
      throw new ContentProcessingException(ex);
    }
  }
View Full Code Here

      JsLib jsLib = bundlableNode.app().jsLib(contentPath.properties.get("lib"));
      resourceFile = jsLib.file(resourcePath);
    }
    else
    {
      throw new ContentProcessingException("Cannot handle request with form name " + contentPath.formName);
    }
   
    try
    {
      if (fileIgnoredByBrjsConfig(resourceFile)) {
        String relativePath = RelativePathUtility.get(brjs.getFileInfoAccessor(), brjs.dir(), resourceFile);
        throw new FileNotFoundException("The file at '"+relativePath+"' is ignored by the BRJS configuration so cannot be served");
      }
      return new BinaryResponseContent( new FileInputStream(resourceFile) )
    }
    catch (FileNotFoundException | ConfigException ex)
    {
      throw new ContentProcessingException(ex);
    }
  }
View Full Code Here

          requestPaths.add(contentPathParser.createRequest("single-module-request", sourceModule.getPrimaryRequirePath()));
        }
      }
    }
    catch(MalformedTokenException e) {
      throw new ContentProcessingException(e);
    }
   
    return requestPaths;
  }
View Full Code Here

   
    try {
      requestPaths.add(contentPathParser.createRequest("bundle-request"));
    }
    catch (MalformedTokenException e) {
      throw new ContentProcessingException(e);
    }
   
    return requestPaths;
  }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.model.exception.request.ContentProcessingException

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.