|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.util.HttpServer
httpserver
module should provide a replacement for this API if necessary.
Maps internal NetBeans resources such as repository objects to URLs. The mapping is delegated to an HTTP server module, which registers to do the mapping. It is also responsible for actually serving the individual data objects from the Repository and resources from the system classpath.
Nested Class Summary | |
static interface |
HttpServer.Impl
Deprecated. Useful only for HttpServer which is itself deprecated. |
Method Summary | |
static boolean |
allowAccess(InetAddress addr)
Deprecated. Should be replaced by an API in the httpserver module if still required. |
static void |
deregisterServer(HttpServer.Impl server)
Deprecated. As of 2.11 use Lookup instead of registering and derigistering HTTP server |
static URL |
getRepositoryRoot()
Deprecated. Assumes repository equals classpath. |
static URL |
getRepositoryURL(FileObject fo)
Deprecated. Use URLMapper instead. |
static URL |
getResourceRoot()
Deprecated. Use URLMapper with a URL protocol nbres . |
static URL |
getResourceURL(String resourcePath)
Deprecated. Use URLMapper with a URL protocol nbres . |
static void |
registerServer(HttpServer.Impl server)
Deprecated. As of 2.11 use Lookup instead of registering HTTP server |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void registerServer(HttpServer.Impl server) throws SecurityException
ModuleInstall.installed()
or ModuleInstall.restored()
.
server
- the server to register
SecurityException
- if there was already one registeredpublic static void deregisterServer(HttpServer.Impl server) throws SecurityException
ModuleInstall.uninstalled()
.
server
- the server to deregister
SecurityException
- if the specified server was not the installed onepublic static URL getRepositoryURL(FileObject fo) throws MalformedURLException, UnknownHostException
URLMapper
instead.
fo
- the file object to represent
MalformedURLException
- for the usual reasons
UnknownHostException
- for the usual reasons, or if there is no registered serverpublic static URL getRepositoryRoot() throws MalformedURLException, UnknownHostException
MalformedURLException
- for the usual reasons
UnknownHostException
- for the usual reasons, or if there is no registered serverpublic static URL getResourceURL(String resourcePath) throws MalformedURLException, UnknownHostException
URLMapper
with a URL protocol nbres
.
resourcePath
- path of the resource in classloader format (e.g. /some/path/resources/icon32.gif
)
MalformedURLException
- for the usual reasons
UnknownHostException
- for the usual reasons, or if there is no registered serverClassLoader.getResource(java.lang.String)
public static URL getResourceRoot() throws MalformedURLException, UnknownHostException
URLMapper
with a URL protocol nbres
.
MalformedURLException
- for the usual reasons
UnknownHostException
- for the usual reasonsgetResourceURL(java.lang.String)
public static boolean allowAccess(InetAddress addr) throws UnknownHostException
httpserver
module if still required.
addr
- address for which access is requested
true
if access has been granted
UnknownHostException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |