Package org.bladerunnerjs.model.exception.request

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


      case WORKBENCH_BUNDLE_REQUEST:
        return app.bladeset(pathProperties.get("bladeset")).blade(pathProperties.get("blade")).workbench().handleLogicalRequest(pathProperties.get("content-path"), contentAccessor, devVersion);
    }
   
    throw new ContentProcessingException("unknown request form '" + parsedContentPath.formName + "'.");
  }
View Full Code Here


      contentAccessor.writeLocalUrlContentsToOutputStream(pathRelativeToApp, indexPageContent);
     
      return TagPluginUtility.getUsedTagsAndAttributes(indexPageContent.toString(), browsableNode.getBundleSet(), requestMode, locale, version);
    }
    catch (IOException | ConfigException | ModelOperationException | NoTagHandlerFoundException e) {
      throw new ContentProcessingException(e, "Error when trying to calculate used tags in the index page for " + RelativePathUtility.get(browsableNode.root().getFileInfoAccessor(), browsableNode.root().dir(),indexPage));
    }
   
  }
View Full Code Here

      }

      return new CharResponseContent( browsableNode.root(), byteArrayOutputStream.toString() );
    }
    catch (IOException | ConfigException | ModelOperationException e) {
      throw new ContentProcessingException(e, "Error when trying to write the index page for " + RelativePathUtility.get(app.root().getFileInfoAccessor(), browsableNode.root().dir(), indexPage));
    }
  }
View Full Code Here

      localeForwardingPage.write("<body onload='forwardToLocalePage()'></body>\n");
     
      return new CharResponseContent( app.root(), localeForwardingPage.toString() );
    }
    catch (IOException | ConfigException | MalformedTokenException | MalformedRequestException e) {
      throw new ContentProcessingException(e);
    }
  }
View Full Code Here

      else {
        throw new ContentFileProcessingException(imageFile, "File does not exist in a known scope");
      }
    }
    catch(MalformedTokenException e) {
      throw new ContentProcessingException(e);
    }
   
    return targetPath;
  }
View Full Code Here

      for(Asset asset : xmlAssets){
        try (Reader reader = asset.getReader()) { IOUtils.copy(reader, writer); }
      }
      writer.write("</bundle>");
    } catch (IOException e) {
      throw new ContentProcessingException( e);
     
    }
  };
View Full Code Here

      XMLOutputFactory outputFactory = XMLOutputFactory.newInstance();
      XMLStreamWriter xmlWriter = outputFactory.createXMLStreamWriter(writer);
      writeBundleInternal(resourceReaders, xmlWriter);
    }
    catch (XmlSiblingReaderException | XMLStreamException e) {
      throw new ContentProcessingException(e, "Error while bundling XML assets '" );
   
    finally
    {
      if (resourceReaders != null)
      {
View Full Code Here

      if (nextElement == null)
      {
        String errorMessage = "None of the available elements '" + StringUtils.join(availableElements.keySet(),
          ", ") + "' matched any of the expected elements '" + StringUtils.join(resourceConfig.getTemplateElements(), ", ") + "'";
        throw new ContentProcessingException(errorMessage);
      }
    }

    return nextElement;
  }
View Full Code Here

      {
        while (processXMLElement(writer, processedIdentifers, identifierAttribute, reader));
      }
      catch (Exception e)
      {
        throw new ContentProcessingException(e, "Error while bundling asset ");
      }
    }
  }
View Full Code Here

            try
            {
              InputStream is = new FileInputStream(configFile);
              result = processBundlerConfig(is);
            } catch (ParserConfigurationException | SAXException | IOException e) {
              throw new ContentProcessingException(e);
            }
            return result;
      }
    });
  }
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.