Package org.bladerunnerjs.model.exception.request

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


       
        try {
          String css = processor.getFileContents();
          readerList.add(new StringReader(css));
        } catch (IOException e) {
          throw new ContentProcessingException(e);
        }
        readerList.add(new StringReader("\n"));
      }
    }
   
View Full Code Here


          }
        }
      }
    }
    catch(MalformedTokenException | ConfigException e) {
      throw new ContentProcessingException(e);
    }
   
    return new ArrayList<>(contentPaths);
  }
View Full Code Here

    {
      input = SourceFile.fromInputStream( "input.js", getSingleInputStreamForInputSources(inputSources) );
    }
    catch (IOException ex)
    {
      throw new ContentProcessingException(ex);
    }
   
    List<Reader> readers = new LinkedList<>();
   
    Result result = compiler.compile(extern, input, options);
View Full Code Here

      closeInputSources(inputSources);
     
      return content;
    }
    else {
      throw new ContentProcessingException("unknown request form '" + contentPath.formName + "'.");
    }
  }
View Full Code Here

            requestPaths.add(contentPathParser.createRequest(requestFormName, minifierSettingName));
          }
        }
      }
      catch(MalformedTokenException e) {
        throw new ContentProcessingException(e);
      }
    }
   
    return requestPaths;
  }
View Full Code Here

          inputSources.add( new InputSource(parsedContentPath, contentPlugin, bundleSet, contentAccessor, version) );
        }
      }
    }
    catch (MalformedRequestException e) {
      throw new ContentProcessingException(e);
    }
   
    return inputSources;
  }
View Full Code Here

          String requestedFilePathRelativeToApp = RelativePathUtility.get(brjs.getFileInfoAccessor(), app.dir(), requestedFile);
         
          if (!requestedFile.isFile())
          {
            String requestedFilePathRelativeToRoot = RelativePathUtility.get(brjs.getFileInfoAccessor(), app.dir().getParentFile(), requestedFile);
            throw new ContentProcessingException("The requested unbundled resource at '"+requestedFilePathRelativeToRoot+"' does not exist or is not a file.");
          }
       
          ByteArrayOutputStream outputBuffer = new ByteArrayOutputStream();
          contentAccessor.handleRequest(requestedFilePathRelativeToApp, outputBuffer);
          return new BinaryResponseContent( new ByteArrayInputStream(outputBuffer.toByteArray()) );
        }
      else {
        throw new ContentProcessingException("unknown request form '" + contentPath.formName + "'.");
      }
    }
    catch (IOException e)
    {
      throw new ContentProcessingException(e);
    }
  }
View Full Code Here

    {
      return generateBundleForLocale(bundleSet, locale);
    }
    else
    {
      throw new ContentProcessingException("unknown request form '" + contentPath.formName + "'.");
    }
  }
View Full Code Here

          requestPaths.add( contentPathParser.createRequest(VERSIONED_UNBUNDLED_RESOURCES_REQUEST, relativePath) );
      }
    }
    catch (MalformedTokenException e)
    {
      throw new ContentProcessingException(e);
    }
   
    return requestPaths;
  }
View Full Code Here

      }
      return contentPaths;
    }
    catch (Exception ex)
    {
      throw new ContentProcessingException(ex);
    }
  }
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.