Circumflex Blog

web framework, object-relational mapper and other cool things for Scala

1 note &

Circumflex & Milton

Hi guys!

It’s been a while since the last post. We are working hard. Today I want to announce our helper project, circumflex-milton. It allows easy integration with Milton WebDAV Server Library for Java. It aims to be the most lightweight Scala solution for accessing your structural data using WebDAV protocol. The most awesome fact about circumflex-milton is that it actually makes resource resolution process as much fun as writing routers for Circumflex Web Framework application. Just look at the code from our README:

package com.myapp
import ru.circumflex.milton._

class MiltonRouter extends WebDAVRouter {
  uri("/") = RootResource
  uri("/orders/?") = new OrdersRootResource()
  uri("/orders/:orderId") = new OrderResource(param("orderId"))
}

See? The same routing stuff! Though, due to complexity of WebDAV spec, you’ll probably have some time implementing FileResource and FolderResource for the needs of your domain model, and probably stuck inside providing Digest Authentication for the most annoying WebDAV clients who can’t talk to HTTPS servers with Basic Authentication. Still, you’ll be able to get your WebDAV server up and running in a couple of hours (well, maybe days if stuff won’t go that smoothly).

I hope you’ll get even more fun developing with Circumflex!

DISCLAIMER: Circumflex Milton is a very young project. For now we have some problems with sending non-standard status codes as well as more WebDAV-specific stuff. I’m sure we’ll get on that very soon, but you must be warned. Have fun!

  1. whiteants reblogged this from circumflex-scala
  2. circumflex-scala posted this