unfiltered/unfiltered — pull request #271 by benhutchison (2014-10-19 12:05:01+00:00)
Title: ContextAdder support for specifying aliases flag on ContextHandler

Use case: I use Unfiltered both to drive a backend API and to serve Scala.js content from a peer directory. I.e. I wanted to serve resources from a relative path like:

```scala
unfiltered.jetty.Server.http(8080).
context("/client"){ ctx: ContextAdder =>
ctx.resources(new java.net.URL(
"""file:../mg-client"""
)).allowAliases(true)
}.filter(api).run()
```

Initially, the resources 404ed. Debugging revealed the reason is that `../mg-client` is considered an /aliased/ path since it's non-canonical, and runs afoul of this default policy: http://www.eclipse.org/jetty/documentation/current/serving-aliased-files.html

This PR gives users of unfiltered-jetty a way to opt out of this strict policy, which is undesirable/unnecessary in my case. I'd expect the ability to serve resources off relative paths that include parent dirs would be useful to many Unfiltered users.

One downside is that existing user-implementations of `ContextAdder` will no longer compile, since new abstract method is added. However, it wasn't clear that this trait is intended to be extended by users of Unfiltered.