httpserver
module should provide a replacement for this API if necessary.@Deprecated public abstract class HttpServer extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
HttpServer.Impl
Deprecated.
Useful only for
HttpServer which is itself deprecated. |
Modifier and Type | Method and Description |
---|---|
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
|
@Deprecated public static void registerServer(HttpServer.Impl server) throws SecurityException
ModuleInstall
or ModuleInstall
.server
- the server to registerSecurityException
- if there was already one registered@Deprecated public static void deregisterServer(HttpServer.Impl server) throws SecurityException
ModuleInstall
.server
- the server to deregisterSecurityException
- if the specified server was not the installed one@Deprecated public static URL getRepositoryURL(FileObject fo) throws MalformedURLException, UnknownHostException
URLMapper
instead.fo
- the file object to representMalformedURLException
- for the usual reasonsUnknownHostException
- for the usual reasons, or if there is no registered server@Deprecated public static URL getRepositoryRoot() throws MalformedURLException, UnknownHostException
MalformedURLException
- for the usual reasonsUnknownHostException
- for the usual reasons, or if there is no registered server@Deprecated public 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 reasonsUnknownHostException
- for the usual reasons, or if there is no registered serverClassLoader.getResource(java.lang.String)
@Deprecated public static URL getResourceRoot() throws MalformedURLException, UnknownHostException
URLMapper
with a URL protocol nbres
.MalformedURLException
- for the usual reasonsUnknownHostException
- for the usual reasonsHttpServer.getResourceURL(java.lang.String)
@Deprecated public static boolean allowAccess(InetAddress addr) throws UnknownHostException
httpserver
module if still required.addr
- address for which access is requestedtrue
if access has been grantedUnknownHostException