| |
|
| java.lang.Object org.openide.util.HttpServer
HttpServer | abstract public class HttpServer (Code) | | 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.
author: Petr Jiricka |
Inner Class :public interface Impl | |
allowAccess | public static boolean allowAccess(InetAddress addr) throws UnknownHostException(Code) | | Requests the server to allow access to it from a given IP address.
This can be useful if a module wishes another machine to be able to access
the server, such as a machine running a deployment server.
The server may or may not grant access to the IP address, for example
if the user does not wish to grant access to the IP address.
Parameters: addr - address for which access is requested true if access has been granted |
getRepositoryRoot | public static URL getRepositoryRoot() throws MalformedURLException, UnknownHostException(Code) | | Map the repository root to a URL.
This URL should serve a page from which repository objects are accessible.
This means that it should serve a package-oriented view of the Repository, corresponding
to a merge of all files present in the root folders of visible file systems.
a URL throws: MalformedURLException - for the usual reasons throws: UnknownHostException - for the usual reasons, or if there is no registered server |
|
|
|