guardian/guardian-management — pull request #4 by daithiocrualaoich (2012-03-15 16:08:14+00:00)
Title: Play /management URLs

Right, let's get going with this.

This adds /management URL support for Play Framework 2.0. See the example-play demo app and notice how similar the setup is to the example-servlet-api demo app.

The routes file entries are unfortunate, I think. My feeling is that the Play support could benefit from being made into a Play plugin somehow. The trick would be thinking up a clever way of configuring the management pages nicely from the client applications. *deferred*

Oh, support for Scala 2.8.1 and 2.9.0-1 is dropped. Pfaffing around with the `ManagementBuild.scala` to get it partially crossbuilding in `management-play` was too much too far.

I suggest releasing version 5.7 from here and worrying later about `RequestLoggingFilter` and other functionality that requires a code hook after the request completion. Play `Async` actions make this ever so slightly not trivial.

The key question is whether `PlayHttpResponse` is the right way about this. `ServletHttpResponse` writes immediate to the Serlvet API which isn't possible in Play. Instead, the write actions are stored and played later in the response at the natural point in the Play dispatch cycle. Clever thoughts on this in particular are welcome.