Oxygen XML Editor, Version ${standalone-version-number}

ro.sync.exml.plugin.urlstreamhandler
Interface URLStreamHandlerPluginExtension

All Superinterfaces:
PluginExtension
All Known Subinterfaces:
URLStreamHandlerWithLockPluginExtension
All Known Implementing Classes:
CustomProtocolURLHandlerExtension

public interface URLStreamHandlerPluginExtension
extends PluginExtension

URLStreamHandler provider plugin extension.


Field Summary
static String ADVICE_CLOSE
          "oxygen-action" header value instructing to close the editor.
static String ADVICE_RELOAD
          "oxygen-action" header value instructing to reload editor's content from the provided location.
static String LOCATION_HEADER
          The location header key.
static String OXYGEN_ACTION_HEADER
          The oxygen-action header key.
 
Method Summary
 URLStreamHandler getURLStreamHandler(String protocol)
          Get the URL handler for the specified protocol.
 

Field Detail

LOCATION_HEADER

static final String LOCATION_HEADER
The location header key. When saving the content through an URLConnection you can set the "location" header field to a specific value. Together with the "oxygen-action" header field value, this will instruct to refresh the editor content from the specified location or to close the editor, after performing the save operation.

See Also:
Constant Field Values

OXYGEN_ACTION_HEADER

static final String OXYGEN_ACTION_HEADER
The oxygen-action header key. Use case: After saving content to certain CMSs, the content may be changed by the CMS or even the location can be relocated. After closing the output stream, will check the header keys of the URLConnection for the "location" and "oxygen-action" keys. If the "oxygen-action" key is found and the value is a supported one: "reload" or "close" values, will act accordingly.

See Also:
Constant Field Values

ADVICE_RELOAD

static final String ADVICE_RELOAD
"oxygen-action" header value instructing to reload editor's content from the provided location.

See Also:
Constant Field Values

ADVICE_CLOSE

static final String ADVICE_CLOSE
"oxygen-action" header value instructing to close the editor.

See Also:
Constant Field Values
Method Detail

getURLStreamHandler

URLStreamHandler getURLStreamHandler(String protocol)
Get the URL handler for the specified protocol.

Parameters:
protocol - The name of the protocol.
Returns:
The handler for the protocol or null if it does not know it.

Oxygen XML Editor, Version ${standalone-version-number}

© Copyright Syncro Soft SRL 2002 - 2010.