launcher/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java
branchemul
changeset 626 f08eb4df84c1
parent 623 4af0d3dedb9d
child 667 5866e89ef568
     1.1 --- a/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java	Thu Jan 31 17:39:47 2013 +0100
     1.2 +++ b/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java	Thu Jan 31 19:21:37 2013 +0100
     1.3 @@ -18,6 +18,7 @@
     1.4  package org.apidesign.bck2brwsr.launcher;
     1.5  
     1.6  import java.io.IOException;
     1.7 +import java.io.InputStream;
     1.8  import java.util.concurrent.CountDownLatch;
     1.9  import java.util.concurrent.TimeUnit;
    1.10  
    1.11 @@ -33,7 +34,7 @@
    1.12      private String result;
    1.13      private Throwable exception;
    1.14      String html;
    1.15 -    String httpContent;
    1.16 +    InputStream httpContent;
    1.17      String httpType;
    1.18      String httpPath;
    1.19  
    1.20 @@ -54,7 +55,7 @@
    1.21      /** HTTP resource to be available during execution. An invocation may
    1.22       * perform an HTTP query and obtain a resource relative to the page.
    1.23       */
    1.24 -    public void setHttpResource(String relativePath, String mimeType, String content) {
    1.25 +    public void setHttpResource(String relativePath, String mimeType, InputStream content) {
    1.26          if (relativePath == null || mimeType == null || content == null) {
    1.27              throw new NullPointerException();
    1.28          }