launcher/api/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java
1.1 --- a/launcher/api/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java Fri Jun 21 22:34:09 2013 +0200
1.2 +++ b/launcher/api/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java Mon Jun 24 14:18:17 2013 +0200
1.3 @@ -96,32 +96,6 @@
1.4 wait.countDown();
1.5 }
1.6
1.7 - private static RegisterResource RR;
1.8 - static void register(RegisterResource rr) {
1.9 - RR = rr;
1.10 - }
1.11 - /** A running {@link InvocationContext test} can register additional
1.12 - * resources to the associated browser (if any).
1.13 - *
1.14 - * @param content the stream to deliver content from
1.15 - * @param mimeType mime type for the HTTP reply
1.16 - * @param path suggested path in the server to use
1.17 - * @param parameters additional parameters
1.18 - * @return the URI the resource is made available at
1.19 - * @throws NullPointerException if there is no {@link InvocationContext test}
1.20 - * currently running
1.21 - * @since 0.8
1.22 - */
1.23 - public static URI register(
1.24 - InputStream content, String mimeType, String path, String[] parameters
1.25 - ) {
1.26 - final Resource r = new Resource(content, mimeType, path, parameters);
1.27 - return RR.registerResource(r);
1.28 - }
1.29 - static interface RegisterResource {
1.30 - public URI registerResource(Resource r);
1.31 - }
1.32 -
1.33 static final class Resource {
1.34 final InputStream httpContent;
1.35 final String httpType;