No need for hacks anymore now when GRIZZLY-1450 was fixed
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 07 May 2013 16:16:21 +0200
changeset 108147687dce809a
parent 1077 e16926bd6ea1
child 1088 4b65abc39565
No need for hacks anymore now when GRIZZLY-1450 was fixed
launcher/fx/pom.xml
launcher/http/pom.xml
launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java
launcher/pom.xml
     1.1 --- a/launcher/fx/pom.xml	Mon May 06 17:57:36 2013 +0200
     1.2 +++ b/launcher/fx/pom.xml	Tue May 07 16:16:21 2013 +0200
     1.3 @@ -45,7 +45,7 @@
     1.4      <dependency>
     1.5        <groupId>org.glassfish.grizzly</groupId>
     1.6        <artifactId>grizzly-http-server</artifactId>
     1.7 -      <version>2.2.19</version>
     1.8 +      <version>${grizzly.version}</version>
     1.9      </dependency>
    1.10      <dependency>
    1.11        <groupId>com.oracle</groupId>
     2.1 --- a/launcher/http/pom.xml	Mon May 06 17:57:36 2013 +0200
     2.2 +++ b/launcher/http/pom.xml	Tue May 07 16:16:21 2013 +0200
     2.3 @@ -44,7 +44,7 @@
     2.4      <dependency>
     2.5        <groupId>org.glassfish.grizzly</groupId>
     2.6        <artifactId>grizzly-http-server</artifactId>
     2.7 -      <version>2.2.19</version>
     2.8 +      <version>${grizzly.version}</version>
     2.9      </dependency>
    2.10      <dependency>
    2.11        <groupId>${project.groupId}</groupId>
     3.1 --- a/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java	Mon May 06 17:57:36 2013 +0200
     3.2 +++ b/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java	Tue May 07 16:16:21 2013 +0200
     3.3 @@ -208,9 +208,6 @@
     3.4              public void service(Request request, Response response) throws Exception {
     3.5                  String id = request.getParameter("request");
     3.6                  String value = request.getParameter("result");
     3.7 -                if (value != null && value.indexOf((char)0xC5) != -1) {
     3.8 -                    value = toUTF8(value);
     3.9 -                }
    3.10                  
    3.11                  
    3.12                  InvocationContext mi = null;
    3.13 @@ -376,13 +373,6 @@
    3.14              return new Object[] { process, null };
    3.15          }
    3.16      }
    3.17 -    private static String toUTF8(String value) throws UnsupportedEncodingException {
    3.18 -        byte[] arr = new byte[value.length()];
    3.19 -        for (int i = 0; i < arr.length; i++) {
    3.20 -            arr[i] = (byte)value.charAt(i);
    3.21 -        }
    3.22 -        return new String(arr, "UTF-8");
    3.23 -    }
    3.24      
    3.25      private static String decodeURL(String s) {
    3.26          for (;;) {
     4.1 --- a/launcher/pom.xml	Mon May 06 17:57:36 2013 +0200
     4.2 +++ b/launcher/pom.xml	Tue May 07 16:16:21 2013 +0200
     4.3 @@ -11,6 +11,9 @@
     4.4    <version>0.8-SNAPSHOT</version>
     4.5    <packaging>pom</packaging>
     4.6    <name>Launchers</name>
     4.7 +  <properties>
     4.8 +      <grizzly.version>2.3.2</grizzly.version>
     4.9 +  </properties>
    4.10    <modules>
    4.11      <module>api</module>
    4.12      <module>http</module>