Show Some Love
JAVA

com.sun.net.httpserver.HttpServer?

This forum was posted on Sunday, June 30, 2013 12:46:31 AM


Greetings

I mentioned this before in this post but it did not start a discussion so here it goes again: the title mentions it: in the JSE distribution a nice package is stored wich having a complete http 1.1 server (see the title). it's also nicely documented here. I strange if somebody else knows about it thing and if yes does somebody do something with this pacakage and classes. I know it's the com.sun.* stuff and we're not supposed to touch it or even seem at it but even when I was young I secretly opened the gift packages that were put under the Christmas tree and so I peeked around in the rt.jar file (stored in your JRE/lib folder).

As far as I know this package just sits there and is not it used anywhere in the core classes. I attempted it and it works as a breeze. it's far more lightweight than those Servlets and JSPs and all the other crap people love so much. Any opinions about it?

sort regards

Jos


55 Viewed this Question



 Recent Replies on "com.sun.net.httpserver.HttpServer?"

  • Nobody has replied on this post, be first to post answer.

Post Your Solution for this Question


Note: Please Put Code into <code></code> block.

Threads related to "com.sun.net.httpserver.HttpServer?":

Load objects from DataBase into an ArrayList, then into a jComboBox in a GUI

Hi I'm getting a small problem adding objects that I fetched from my database to an arraylist. i'm working with 3 classes(various pacakges). A class called "BranchMapper.java"(the mapper from the DB definitely) "Branch.java" (The object class) and "BranchGUI"(where the jComboBox resides). I hv did this so far. I require the objects to be added to an ArrayList in the mapper class so I can fetch the arraylist and append it to the jComboBox in the visual class BranchMa

Java app on 64 bit Windows 2008

I require help finding the solution to a problem that I'm getting with an java application that I'm running on 64 bit Windows 2008 Server for a P to V physical to virtual server migration. My application has been running best on Windows 2003 32 bit OS. Windows 2008 Server seems to be causing my applicaton to issue file copy errors (null value) for a text file that is a initial listing of a folder nothing large or arcane. Also the application does not move files from folders designated in the properties file. I ga

Multiple comand with shell JSCH

Hi I am working with the library JSCH to connect to linux host.I must run more than one command. I must run a command that requrire to insert a value after.The commmand is ssh user@host -s netconf and the solution is Password: I must after put the password.Can You advise me sone links with the use of this library with more than one command?Thank in advance.

Encrypting a big file

I hace a database made whit administrator program createthe file with all products are 6000 products this file must be shared to others client-programs that i require is that my administrator program upload to a server and with the client-program download it but nobody can open the dile to view the info. i require the file will be safe. I recomend me encrypting with RSA but i don't have clear this process for a file. I hv understood that the size is multiplied. What do you advise for encrypting the

Need to read an excel file and print it as an xml

Hi Everyone I hv a require in my project for which i require little guidance.I hv an excel sheet something similar to this .Plz note that in the first 2 rows the columns "id" and "Name" have the similar values but hobbies are various. idNameHobbies1 Xxx Reading1 Xxx Movies2 Yyy Singing3 Zzz Stamp collection3 Zzz Sports Now i require this to be converted to an xml which would appear something similar to this: 1XxxReadingMovies i require the id and Name to be taken only once but the h

JavaLogger - putting e.printStackTrace() in logger.

Does anybody know How do I put e.printStackTrace() in logger methods. try{// exception code snippet snippet here}catch(Exception e){e.printStackTrace(); ==> i require to put this stack trace in Java Logger. /*Logger methods logger.debug(e.getMessage()) - my require is to put all log msg inside logger methods.*/ } Can someone help if they worked on such requirements?

Better way to update GUI language on the fly?

Hi there I'm writing an application with language support. Right now the language (locale) is taken from a external file and the appropriate resource bundle is taken. After that all the GUI is constructed getting the texts from there. This approach in order to apply a language the app must be restarted so the new bundle is taken before adding the components. My intention is to make this language update on the fly and the only approach I come up with is by using an array to reference all com

The Mystery of the auto-morphing variables

This is really curious and I am not one who posts a lot. I usually debug on my own and google until a black hole forms inside my ethernet card... I will not be capable to post actual code snippet snippet becoz I am programming for a company who are really strict about privacy and suchIt is too big anyway (dozens of classes)I will however give as various details as I deem useful and solution any issues I deem related which in sightof my depseration will most liely be all of them. Here we go:I

JDBC Driver for SQLite 2.1

do you know ny jdbc driver for sqlite 2.1 database or lower? I hv only found drivers for versions higher to 2.4 and I require it urgently!!! Regards!!!

Best practices in handling big data streams

Hello everybody. i require to develop a mechanism to receive the content of a big file through the input stream of a Servlet can be transform the data and then sned tHello s to an ending stream (like a file other URL ...). I know How do I read from the servlet stream. But suppose you have to handle thousands of megabytes of data. What would be the best method to handle tHello s data? I can not load all the data becoz memory will run out. I tHello nk I could store data into a temporary file and then handle