Package org.bladerunnerjs.model

Examples of org.bladerunnerjs.model.StaticContentAccessor


  }
 
  public CommanderChainer requestReceived(final String requestPath, final StringBuffer response) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException, UnsupportedEncodingException {
    call(new Command() {
      public void call() throws Exception {
        ResponseContent contentOutput = app.handleLogicalRequest(requestPath, new StaticContentAccessor(app));
        ByteArrayOutputStream pluginContent = new ByteArrayOutputStream();
        contentOutput.write(pluginContent);
        response.append( pluginContent );
      }
    });
View Full Code Here


    try {
      String version = app.root().getAppVersionGenerator().getProdVersion();
      Map<String,List<String>> contentPluginProdRequestsMap = new HashMap<>();
      BRJS brjs = app.root();
      AppRequestHandler appRequestHandler = new AppRequestHandler(app);
      UrlContentAccessor urlContentAccessor = new StaticContentAccessor(app);
      Locale[] locales = app.appConf().getLocales();
     
      filterAppWebXml(app, targetDir, version);
     
      for (Aspect aspect : app.aspects()) {
View Full Code Here

    return builderChainer;
  }
 
  public BuilderChainer hasReceivedRequest(String requestPath) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException, IOException, ModelOperationException
  {
    app.handleLogicalRequest(requestPath, new StaticContentAccessor(app));
   
    return builderChainer; 
  }
View Full Code Here

    String modelRequestPath = getModelRequestPath(bundlePath);
   
    repeatedlyAttemptToCreateBundleFile(bundleFile);
   
    try (OutputStream bundleFileOutputStream = new FileOutputStream(bundleFile, false);
      ResponseContent content = BundleSetRequestHandler.handle(new JsTestDriverBundleSet(bundlableNode.getBundleSet()), modelRequestPath, new StaticContentAccessor(app), version); )
    {
      content.write( bundleFileOutputStream );
      bundleFileOutputStream.flush();
    }
   
View Full Code Here

  }
 
  public CommanderChainer requestReceivedInDev(final String requestPath, final StringBuffer response) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException, UnsupportedEncodingException {
    call(new Command() {
      public void call() throws Exception {
        ResponseContent content = bundlableNode.handleLogicalRequest(requestPath, new StaticContentAccessor(bundlableNode.app()), bundlableNode.root().getAppVersionGenerator().getDevVersion());           
        ByteArrayOutputStream pluginContent = new ByteArrayOutputStream();
            content.write(pluginContent);
            response.append(pluginContent.toString(BladerunnerConf.OUTPUT_ENCODING));
      }
    });
View Full Code Here

  }
 
  public CommanderChainer requestReceivedInDev(final String requestPath, final OutputStream response) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException, UnsupportedEncodingException {
    call(new Command() {
      public void call() throws Exception {
        ResponseContent content = bundlableNode.handleLogicalRequest(requestPath, new StaticContentAccessor(bundlableNode.app()), bundlableNode.root().getAppVersionGenerator().getDevVersion());
            content.write(response);
      }
    });
   
    return commanderChainer;
View Full Code Here

  }
 
  public CommanderChainer requestReceivedInProd(final String requestPath, final StringBuffer response) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException, UnsupportedEncodingException {
    call(new Command() {
      public void call() throws Exception {
        ResponseContent content = bundlableNode.handleLogicalRequest(requestPath, new StaticContentAccessor(bundlableNode.app()), bundlableNode.root().getAppVersionGenerator().getProdVersion());
            ByteArrayOutputStream pluginContent = new ByteArrayOutputStream();
            content.write(pluginContent);
            response.append(pluginContent);
      }
    });
View Full Code Here

  }
 
  public CommanderChainer requestReceivedInProd(final String requestPath, final OutputStream response) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException, UnsupportedEncodingException {
    call(new Command() {
      public void call() throws Exception {
        ResponseContent content = bundlableNode.handleLogicalRequest(requestPath, new StaticContentAccessor(bundlableNode.app()), bundlableNode.root().getAppVersionGenerator().getProdVersion());
            content.write(response);
      }
    });
   
    return commanderChainer;
View Full Code Here

    super(specTest, bundlableNode);
    this.bundlableNode = bundlableNode;
  }
 
  public BuilderChainer hasReceivedRequest(String requestPath) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException, IOException {
    bundlableNode.handleLogicalRequest(requestPath, new StaticContentAccessor(bundlableNode.app()), bundlableNode.root().getAppVersionGenerator().getDevVersion());
   
    return builderChainer;
  }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.model.StaticContentAccessor

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.