ro.sync.sample.plugin.openredirect
Class CustomOpenRedirectExtension
java.lang.Object
ro.sync.sample.plugin.openredirect.CustomOpenRedirectExtension
- All Implemented Interfaces:
- OpenRedirectExtension, PluginExtension
public class CustomOpenRedirectExtension
- extends Object
- implements OpenRedirectExtension
Custom extension to redirect open for some URLs
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomOpenRedirectExtension
public CustomOpenRedirectExtension()
redirect
public OpenRedirectInformation[] redirect(URL url)
- Description copied from interface:
OpenRedirectExtension
- This call back can redirect an open call for an URL in different parts of Oxygen.
For example if you want to open a certain XML file from a ZIP archive, when the callback is received for the archive URL
you can return two OpenRedirectInformation objects (one with the URL of the archive and the content type of the archive browser
and the other with the URL of the file inside the archive and the content type "null" for auto-detection or text/xml).
- Specified by:
redirect
in interface OpenRedirectExtension
- Parameters:
url
- The URL which will get opened in Oxygen
- Returns:
- null if the plugin lets the default behavior take place.
Empty array if the plugin chooses not to open anything
An array of redirect information objects which will direct Oxygen to open them with the specified content types.
- See Also:
OpenRedirectExtension.redirect(java.net.URL)
© Copyright Syncro Soft SRL 2002 - 2010.