Opening Files in Oxygen from Website

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
bpopp
Posts: 37
Joined: Tue Nov 30, 2010 7:34 pm

Opening Files in Oxygen from Website

Post by bpopp » Wed Aug 31, 2011 12:43 am

This is a long shot, but I'll throw it out there. Oxygen appears to open files via the command line when you do something like:

Code: Select all

"c:\Program Files\Oxygen XML Editor 13\oxygen13.0.exe" http://servername/webdav/blah/blah.dita
What I'd like to be able to do is publish a listing of files to a webpage which are stored on a webdav server. Each link would point to it's corresponding file via a custom uri.. ie:

Code: Select all

webdav://servername/webdav/blah/blah.dita
On Windows you can define protocols and assign programs to open them via the registry and most of the browsers will comply:

http://kb.mozillazine.org/Register_protocol

So I could, in theory, setup my users PC's to open webdav:// URI's via Oxygen.

The problem is that Oxygen doesn't appear to know what to do with non-standard URI's like webdav:// or dav://. Is there a workaround for this? Or maybe some other method of doing what I'm trying to do?

Radu
Posts: 7331
Joined: Fri Jul 09, 2004 5:18 pm

Re: Opening Files in Oxygen from Website

Post by Radu » Wed Aug 31, 2011 8:56 am

Hi Brian,

I do not quite understand why you would not use the regular "http" protocol to open WebDav files but you have the possibility to implement in Oxygen a custom protocol plugin.

Our Java Plugin SDK can be downloaded from here:
http://www.oxygenxml.com/oxygen_sdk.htm ... er_Plugins

Just look at the sample Custom Protocol implementation. Basically you have to implement a java.net.URLStreamHandler which will require you to provide an input stream from which Oxygen will read when opening the XML file and an output stream which Oxygen will use when saving the file.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

bpopp
Posts: 37
Joined: Tue Nov 30, 2010 7:34 pm

Re: Opening Files in Oxygen from Website

Post by bpopp » Wed Aug 31, 2011 4:48 pm

The reason for the custom protocol is that I can't remap the http:// protocol to Oxygen since it's already being used by the browser. I'll take a look at the StreamHandler solution. Thanks for the pointer.

Post Reply