This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 22863

Summary: Missing HttpServer API
Product: ide Reporter: _ lkramolis <lkramolis>
Component: Internal ServerAssignee: issues@ide <issues>
Status: NEW ---    
Severity: blocker CC: rkubacki
Priority: P2 Keywords: API
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ lkramolis 2002-04-26 14:12:39 UTC
Hi.

In HttpServer I miss possibility to start server
and also I would like to get server root url
("http://<hostname>:<port>/").

In XML module I have Transform Servlet used as
transformation preview so I need to start http
server before preview and also I need to construct
url as "server root url" +
"servlet/...TransformServlet". Currently I have to
depend dirrectly on httpservlet but I would like
to rather use 'OpenIDE-Module-Requires:
org.openide.util.HttpServer$Impl' in module
manifest what is much better.

Is it possible to add those methods to
HttpServer(.Impl)?

Thanks,
Libor
Comment 1 Marek Grummich 2002-07-22 11:19:21 UTC
Set target milestone to TBD
Comment 2 Marek Grummich 2002-07-22 11:22:03 UTC
Set target milestone to TBD
Comment 3 _ rkubacki 2004-10-21 16:29:34 UTC
Access through openAPI is deprecated now. Passing to httpserver
maintainers
Comment 4 _ rkubacki 2006-01-04 14:56:49 UTC
Currently there is no real API (HttpServer from openide is dead).
There is only a workaround - httpserver defines HTTPServer_DUMMY folder on SFS
and TransformServlet can ask for its NETWORK URL and thus start the server and
obtains its port. 

Some sort of minimalistic (friend?) API can be more readable and avoid this
dummy folder. The xml/xsl needs some sort of dependecy anyway.