|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BrowserManager
An interface to manage (possibly remote) browser windows. This class is experimental and unsupported.
| Method Summary | |
|---|---|
void |
keepAlive(int token,
long keepAliveMs)
Keeps the browser process represented by token alive for keepAliveMs, starting now. |
void |
killBrowser(int token)
Forceably kills the browser process represented by token,
disregarding any previous calls to keepAlive(int, long). |
int |
launchNewBrowser(java.lang.String url,
long keepAliveMs)
Launches a new browser window for the specified URL. |
| Method Detail |
|---|
void keepAlive(int token,
long keepAliveMs)
throws java.rmi.RemoteException
token - an opaque token representing the browser windowkeepAliveMs - the number of milliseconds to let the browser process
live; if roughly keepAliveMs milliseconds elapse
without a subsequent call to this method, the browser process
associated with token will be forceably terminated
java.lang.IllegalStateException - if the process represented by token has
already terminated.
java.lang.IllegalArgumentException - if token does not represent a process that
was returned from launchNewBrowser(String, long).
java.lang.IllegalArgumentException - if keepAliveMs <= 0.
java.rmi.RemoteException - if an error occurs calling a remote implementation.
void killBrowser(int token)
throws java.rmi.RemoteException
token,
disregarding any previous calls to keepAlive(int, long). If the
process has already terminated, this method completes normally.
token - an opaque token representing the browser window process
java.lang.IllegalArgumentException - if token does not represent a process that
was returned from launchNewBrowser(String, long).
java.rmi.RemoteException - if an error occurs calling a remote implementation.
int launchNewBrowser(java.lang.String url,
long keepAliveMs)
throws java.rmi.RemoteException
url - the URL to browse tokeepAliveMs - the initial number of milliseconds to let the browser
process live; if roughly keepAliveMs milliseconds
expire without a subsequent call to keepAlive(int, long),
the browser process will be forceably terminated
java.lang.IllegalArgumentException - if url is null.
java.lang.IllegalArgumentException - if keepAliveMs <= 0.
java.lang.RuntimeException - if an error occurs launching the browser process.
java.rmi.RemoteException - if an error occurs calling a remote implementation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||