org.mozilla.pluglet.mozilla
Interface PlugletManager2


public interface PlugletManager2
extends PlugletManager

This interface extends the functionality of the PlugletManager interface, including methods to begin and end a wait cursor, determine if a URL protocol is supported, and get proxy information for a URL.


Method Summary
 void beginWaitCursor()
          Puts up a wait cursor.
 void endWaitCursor()
          Restores the previous (non-wait) cursor.
 java.lang.String findProxyForURL(java.net.URL url)
          For a given URL, this method returns a String for the proxy information.
 boolean supportsURLProtocol(java.lang.String protocol)
          Returns true if a URL protocol (e.g., http) is supported.
 
Methods inherited from interface org.mozilla.pluglet.mozilla.PlugletManager
getURL, postURL, reloadPluglets, userAgent
 

Method Detail

beginWaitCursor

public void beginWaitCursor()
Puts up a wait cursor.

endWaitCursor

public void endWaitCursor()
Restores the previous (non-wait) cursor.

supportsURLProtocol

public boolean supportsURLProtocol(java.lang.String protocol)
Returns true if a URL protocol (e.g., http) is supported.

Parameters:
protocol - This is the protocol name.

Returns:
Boolean returns true if the URL protocol is supported.

findProxyForURL

public java.lang.String findProxyForURL(java.net.URL url)
For a given URL, this method returns a String for the proxy information. The result will be in the following format:

Which proxy/SOCKS to use is determined by the Pluglet.

Parameters:
url - This is the URL for which proxy information is desired.

Returns:
Information (String) about the proxy. See above for the format.