groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remi Forax <fo...@univ-mlv.fr>
Subject Re: About SimpleHTTPServer
Date Sun, 11 Dec 2016 16:29:56 GMT
There are com.sun classes and com.sun classes :) 

These ones are exported 
http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/tip/src/jdk.httpserver/share/classes/module-info.java

so ok to use. 

Said differently, they are not part of Java but part of the OpenJDK. 

Rémi 

> De: "Cédric Champeau" <cedric.champeau@gmail.com>
> À: dev@groovy.apache.org
> Cc: dev@groovy.incubator.apache.org
> Envoyé: Dimanche 11 Décembre 2016 17:20:08
> Objet: Re: About SimpleHTTPServer

> Is it just me or Remi is advising to use a com.sun class?

> Le 11 déc. 2016 17:18, "Daniel Sun" < realbluesun@hotmail.com > a écrit :

>> Hi Paul,

>> The built-in httpserver of JDK suggested by Remi seems better for us,
>> it is stable and does not require 3rd party library:

>> http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/tip/src/jdk.httpserver/share/classes/com/sun/net/httpserver/package-info.java

>> As to hooking to the existing socket server, I think it feasible as
>> mrhaki showed the relevant sample code, but we have to maintain it... so I
>> would like to implement SimpleHTTPServer based on the built-in httpserver.

>> Cheers,
>> Daniel.Sun

>> --
>> View this message in context:
>> http://groovy.329449.n5.nabble.com/About-SimpleHTTPServer-tp5737191p5737211.html
>> Sent from the Groovy Dev mailing list archive at Nabble.com.

Mime
View raw message