Overview

The Mattress Framework is a Java and Spring based, lightweight and extensible REST framework. It is loosely related to the JSR-311 initiative, but is not compliant since much of the specification has been deemed far too complex or unnecessary.

Features

Getting Started

Things are in the early stages of development here at Mattress. We are currently working hard to release Alpha versions of the framework that have most of the basic functionality that one would expect to see from a REST framework. The best place to start right now is with the 2-Minute Tutorial. This will get you up and running in, well, 2-minutes or so.

Another good place to go is straight to the source code, and in particular, have a look at the mattress-demo-webapp library. There are some comments in the Spring context config file that should explain how to get things wired together. This is very similar to the 2-Minute Tutorial. You can also check out the current Maven site with all its' reports and other goodies.

News

April 10, 2008 - Release: v1.0.0 ALPHA3

As always, lots of bug fixes and few minor API changes in this release. Some big changes and improvements include being able to return an arbitary entity from an error and a refactor of the main request handling code. My favourite improvement however was some refactoring to allow resource beans to be proxied. This means that you can now use AOP on your resource beans! For me, this meant being able to use Acegi/Spring Security 2 (albeit a milestone release), with my resource beans. Enjoy!

February 9, 2008 - Release: v1.0.0 ALPHA2

Lots of bug fixes and some API changes in this release. One big one was removing the Apache Http Components dependency from the API library. The Core library still uses it (for parsing HTTP headers and what-not), but behind the scenes only. The Maven central repository should pickup the changes tomorrow, but if you just can't wait, you can use our Maven Release Repository to get the latest JARs.

Thanks to Sebastien Arbogast for helping with bug finding and being an excellent Alpha user! If you are using Mattress in your organization or project, write in and let me know. I'd love to get your feedback on the progress so far.

January 17, 2008 - Maven Repository Synced to Central

I'm pleased to announce that the project's Maven release repository is now being synced with the Maven central repository. You no longer need to include the Mattress release repository in your Maven POM. Check out the artifacts on Ibiblio: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/mattressframework

January 14, 2008 - Release: v1.0.0 ALPHA1

After a whole bunch of refactoring and beefing up test cases this past weekend, things are finally ready for an Alpha release. Alpha 1 contains full support for entity readers and writers, as well as parameter annotations such as PathParam, QueryParam and HeaderParam. For now the best way to learn is by checking out the 2-Minute Tutorial or by going straight to the source code and looking at the mattress-demo-webapp library. Much, much more to come!

Obtain the JARs from our local Maven Release Repository. This will soon be sync'd by Maven to Ibiblio once my issue with Maven has been resolved.

January 6, 2008 - Seeking Artist

I know, I know, it's not very important, but I'm looking for some way to make this site look halfway decent. Anybody interested in creating a logo and stylesheet for the site is asked to help out and contribute your services! Many thanks.

 

 

Copyright 2008, Josh Devins, Mattress Framework