brad has posted 1 posts at DZone. View Full User Profile

Introducing Milton: An Open Source Webdav API for Servers

10.29.2008
| 6858 views |
  • submit to reddit
Milton is an open source java library for implementing desktop integration in your web apps with WEBDAV.

For those not familiar with WEBDAV, its like FTP but implemented in HTTP. Its a mature standard and supported natively in all operating systems.

Once you've integrated Milton into your application, users can view and/or manipulate remote data in your application using drag and drop of files and folders in their native OS file browser - eg Windows Explorer, Nautilus, etc, over HTTP.

Milton doesnt care about the nature of your data. It can be file system based or housed in a database or accessed through web services, or anything else. I can be used with any type of persistence mechanism, including hibernate, JPA, etc.

It is integrated by implementing a Resource interface for your files and folders and a ResourceFactory which locates instances of Resource from URLs. Then adding the Milton servlet to web.xml.

Milton allows you to specify which http methods to support (eg DELETE, PUT, MKCOL, etc). HTTP authentication and authorisation are delegated to your application logic.

Milton is not bound to the Servlet API, so it can easily be integrated into alternative web servers.

See Milton home for details:
http://milton.ettrema.com/index.html
0
Published at DZone with permission of its author, brad mcevoy.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Dass 123 replied on Thu, 2009/11/26 - 7:21am

Does anyone have a sample on how to use this api? I unable to find relavent documentation or sample code to use the milton webdav api. can someone help me.

brad mcevoy replied on Mon, 2009/12/28 - 4:42am in response to: Dass 123

Sorry for the late reply, I just stumbled across the question.

There's a quick start page here which outlines the main steps - http://milton.ettrema.com/quick_start.html

And there is a working example library you can check out from svn called milton-test. Its a minimal implementation which stores files in memory, so is very simple and easy to follow. The steps to get it running are at the top of the quick start page above.

Many people have reported that they were able to inegrate milton into existing applications in just a couple of hours.

And I'm planning a series of tutorial articles in the ner future

Cheers,

Brad

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.