|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
HttpServer
which is itself deprecated.
Implementation of the HTTP server. Must be implemented by classes which want to register as a server. Implementations are obtained using Lookup.
Such a server must be prepared to specially serve pages from
within the IDE, i.e. the Repository and the system class
loader. (It may also serve external pages, if desired.) It should
have a system option specifying at least the port number (by
default, an unused port above 1000), the host access
restrictions (by default, only localhost
),
and an toggle to disable it. It should provide URLs using the
protocol http
so as not to need to register a new protocol
handler.
Method Summary | |
boolean |
allowAccess(InetAddress addr)
Deprecated. Requests the server to allow access to it from a given IP address. |
URL |
getRepositoryRoot()
Deprecated. Get the URL for the Repository. |
URL |
getRepositoryURL(FileObject fo)
Deprecated. Get the URL for a file object. |
URL |
getResourceRoot()
Deprecated. Get URL root for a resource from system classpath. |
URL |
getResourceURL(String resourcePath)
Deprecated. Get the URL for a resource from system classpath. |
Method Detail |
public URL getRepositoryURL(FileObject fo) throws MalformedURLException, UnknownHostException
fo
- the file object
MalformedURLException
- for the usual reasons
UnknownHostException
- for the usual reasonsHttpServer.getRepositoryURL(org.openide.filesystems.FileObject)
public URL getRepositoryRoot() throws MalformedURLException, UnknownHostException
MalformedURLException
- for the usual reasons
UnknownHostException
- for the usual reasonsHttpServer.getRepositoryRoot()
public URL getResourceURL(String resourcePath) throws MalformedURLException, UnknownHostException
resourcePath
- the resource path
MalformedURLException
- for the usual reasons
UnknownHostException
- for the usual reasonsHttpServer.getResourceURL(java.lang.String)
public URL getResourceRoot() throws MalformedURLException, UnknownHostException
MalformedURLException
- for the usual reasons
UnknownHostException
- for the usual reasonsHttpServer.getResourceURL(java.lang.String)
public boolean allowAccess(InetAddress addr) throws UnknownHostException
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 |