Results 1 to 3 of 3
  1. #1
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,655
    Blog Entries
    7
    Rep Power
    21

    Default Did anyone know this?

    Greetings,

    In Java 1.6 this is part of the com.sun packages:

    com.sun.net.httpserver (Java HTTP Server)

    It wasn't there in Java 1.5 and it is all documented. I wonder what they're up to.

    kind regards,

    Jos

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    hey, no I didn't thats an interesting find. now out of box web applications can host nested HTTP services.

    On its own though, I wonder how useful it would be for making HTTP based web services. I mean, before one might embed Jetty into their application, and that gives you a servlet container for free as well.

    Though I can envision creating a desktop application with simple static HTML manual and help files, and having the application self-host its own HTTP service when it is running, so that when the user clicks help on the menu it can open the system's default web browser and navigate to its self hosted web server, i mean, instead of having to create my own messy swing form based manual with pagination. I always have way too much to say to fit it all into the available spaces :)

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,655
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by travishein View Post
    Though I can envision creating a desktop application with simple static HTML manual and help files, and having the application self-host its own HTTP service when it is running, so that when the user clicks help on the menu it can open the system's default web browser and navigate to its self hosted web server
    That would be nice but I think if Sun wants to have this in the 'main stream' distribution they have to do a bit more than just include it in the Java 1.6 distribution; I just noticed its existence because I was a bit nosey; Google did the rest. Maybe it's still too early to put that package in the open.

    kind regards,

    Jos
    Last edited by JosAH; 01-27-2010 at 06:31 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •