agentland.software
Class WindowsWebBrowserAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.GoodAgent
|
+--agentland.resource.ManagedAgent
|
+--agentland.software.WindowsWebBrowserAgent
- All Implemented Interfaces:
- Agent, Good, HTMLDisplay, Managed, MetagluePrimitives, Remote, Serializable, Spy, WindowsWebBrowser
- Direct Known Subclasses:
- ManagedWindowsWebBrowserAgent
- public class WindowsWebBrowserAgent
- extends ManagedAgent
- implements WindowsWebBrowser
- See Also:
- Serialized Form
Method Summary |
boolean |
display(String sURL)
Displays an HTML page on the current browser given the String URL. |
boolean |
display(URL url)
Displays an HTML page on the current browser given the URL. |
boolean |
display(URL url,
boolean bNewWindow)
Displays an HTML page on a new browser (if bNewWindow) or on the
current browser. |
protected boolean |
ensureBrowserNeeds()
This method will do more meaningful things in the child of this
class -- ManagedWWB which takes advantage of the resource
management tools |
protected boolean |
ensureStartupNeeds()
|
String |
getURL()
returns current URL being displayed in window |
boolean |
goURL(String URL)
|
static String[] |
splitString(String source,
String separator)
|
String |
StartBrowser()
check the Registry for the application that handles .html
documents and launch it |
void |
URLTracker()
|
Methods inherited from class agentland.resource.ManagedAgent |
connect, getAlert, getNeed, isAvailable, isAvailable, reliesOn, reliesOn, replace, replace, request, request, request, requestAgent, requestAgent, resources, resourcesByAgentID, setNeed, tiedTo, yank, yank, yank |
Methods inherited from class agentland.util.GoodAgent |
addSpy, addSpy, alert, alertString, beep, error, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell |
Methods inherited from class metaglue.AgentAgent |
addMonitor, alive, buildEHAFor, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getOldLogs, getProperties, getProxyHandlerClass, getSociety, installAPH, log, log, lookupClass, reliesOn, reliesOnSynch, removeAPHFromCatalog, removeFrozen, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, toString, whereAreYou |
Methods inherited from interface agentland.util.Spy |
tell |
WindowsWebBrowserAgent
public WindowsWebBrowserAgent()
throws RemoteException
ensureStartupNeeds
protected boolean ensureStartupNeeds()
throws RemoteException
ensureBrowserNeeds
protected boolean ensureBrowserNeeds()
throws RemoteException
- This method will do more meaningful things in the child of this
class -- ManagedWWB which takes advantage of the resource
management tools
goURL
public boolean goURL(String URL)
throws RemoteException
- Specified by:
goURL
in interface WindowsWebBrowser
getURL
public String getURL()
throws RemoteException
- returns current URL being displayed in window
- Specified by:
getURL
in interface WindowsWebBrowser
- Following copied from interface:
agentland.text.HTMLDisplay
- Returns:
- a
String
value - Throws:
RemoteException
- if an error occurs
StartBrowser
public String StartBrowser()
- check the Registry for the application that handles .html
documents and launch it
URLTracker
public void URLTracker()
splitString
public static String[] splitString(String source,
String separator)
display
public boolean display(String sURL)
- Description copied from interface:
HTMLDisplay
- Displays an HTML page on the current browser given the String URL.
- Specified by:
display
in interface HTMLDisplay
- Following copied from interface:
agentland.text.HTMLDisplay
- Parameters:
sURL
- a String
value- Returns:
- a
boolean
value - Throws:
RemoteException
- if an error occurs
display
public boolean display(URL url)
- Description copied from interface:
HTMLDisplay
- Displays an HTML page on the current browser given the URL.
- Specified by:
display
in interface HTMLDisplay
- Following copied from interface:
agentland.text.HTMLDisplay
- Parameters:
url
- an URL
value- Returns:
- a
boolean
value - Throws:
RemoteException
- if an error occurs
display
public boolean display(URL url,
boolean bNewWindow)
- Description copied from interface:
HTMLDisplay
- Displays an HTML page on a new browser (if bNewWindow) or on the
current browser.
- Specified by:
display
in interface HTMLDisplay
- Following copied from interface:
agentland.text.HTMLDisplay
- Parameters:
url
- an URL
valuebNewWindow
- a boolean
value- Returns:
- a
boolean
value - Throws:
RemoteException
- if an error occurs