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 - Missing HttpServer API
Summary: Missing HttpServer API
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Internal Server (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@ide
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2002-04-26 14:12 UTC by _ lkramolis
Modified: 2006-01-04 14:56 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.