@API(type=EXTENDABLE, src=PUBLIC) public interface TargetedURLStreamHandlerPluginExtension extends PluginExtension, URLStreamHandlerPluginExtensionConstants
canHandleProtocol(String)
), it will be asked to provide the handler
for each opened connection of an URL having that protocol(getURLStreamHandler(URL)
).
http
, https
,
ftp
or sftp
.
URLStreamHandlerPluginExtension
can be used.ADVICE_CLOSE, ADVICE_RELOAD, LOCATION_HEADER, OXYGEN_ACTION_HEADER, OXYGEN_READ_ONLY_HEADER, OXYGEN_READ_ONLY_REASON_HEADER, OXYGEN_SAVE_TYPE, SAVE_AS
Modifier and Type | Method and Description |
---|---|
boolean |
canHandleProtocol(java.lang.String protocol)
Check if the plugin can handle a specific protocol.
|
java.net.URLStreamHandler |
getURLStreamHandler(java.net.URL url)
Get the URL handler for the specified URL.
|
boolean canHandleProtocol(java.lang.String protocol)
true
for a specific protocol,
the getURLStreamHandler(URL)
method will be called for each opened
connection of an URL having this protocol.
http
, https
,
ftp
, sftp
.protocol
- The protocol.true
if this plugin extension can handle this protocol type.java.net.URLStreamHandler getURLStreamHandler(java.net.URL url)
canHandleProtocol(String)
method returns true
.
If this method returns null
, the Oxygen URLStreamHandler
is used.url
- The URL to provide a handler for.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.