org.lobobrowser.ua
Interface NavigatorExtensionContext


public interface NavigatorExtensionContext

This interface gives extensions access to the platform.

See Also:
NavigatorExtension.init(NavigatorExtensionContext)

Method Summary
 void addClientletSelector(ClientletSelector selector)
          Adds a clientlet selector.
 void addConnectionProcessor(ConnectionProcessor processor)
          Adds an object that can view connections made by the browser and potentially modify their headers and other data.
 void addNavigationListener(NavigationListener listener)
          Adds a global listener of navigation events.
 void addNavigatorErrorListener(NavigatorErrorListener listener)
          Adds a listener of navigator events.
 void addURLStreamHandlerFactory(java.net.URLStreamHandlerFactory factory)
          Registers a URL stream handler factory which may be used to implement custom protocols.
 UserAgent getUserAgent()
          Gets the UserAgent instance associated with this context.
 void removeClientletSelector(ClientletSelector selector)
           
 void removeConnectionProcessor(ConnectionProcessor processor)
           
 void removeNavigationListener(NavigationListener listener)
           
 void removeNavigatorErrorListener(NavigatorErrorListener listener)
          Removes a listener of navigation events.
 

Method Detail

addClientletSelector

void addClientletSelector(ClientletSelector selector)
Adds a clientlet selector. This is how platform extensions register additional content handlers.


removeClientletSelector

void removeClientletSelector(ClientletSelector selector)

addConnectionProcessor

void addConnectionProcessor(ConnectionProcessor processor)
Adds an object that can view connections made by the browser and potentially modify their headers and other data.

Parameters:
processor - An connection processor.

removeConnectionProcessor

void removeConnectionProcessor(ConnectionProcessor processor)

addNavigatorErrorListener

void addNavigatorErrorListener(NavigatorErrorListener listener)
Adds a listener of navigator events.


removeNavigatorErrorListener

void removeNavigatorErrorListener(NavigatorErrorListener listener)
Removes a listener of navigation events.


addNavigationListener

void addNavigationListener(NavigationListener listener)
Adds a global listener of navigation events.

Parameters:
listener - The listener.

removeNavigationListener

void removeNavigationListener(NavigationListener listener)

getUserAgent

UserAgent getUserAgent()
Gets the UserAgent instance associated with this context.


addURLStreamHandlerFactory

void addURLStreamHandlerFactory(java.net.URLStreamHandlerFactory factory)
Registers a URL stream handler factory which may be used to implement custom protocols. Note that Java platform protocols (HTTP, HTTPS, etc.) or protocols defined by extensions with higher priority cannot be overridden. The factory must return null if it does not know how to handle a particular protocol.

Parameters:
factory - An implementation of java.net.URLStreamHandlerFactory.


SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Lobo Home]