Skip to content

Instantly share code, notes, and snippets.

@dwins
Created August 18, 2011 19:02
Show Gist options
  • Save dwins/1154860 to your computer and use it in GitHub Desktop.
Save dwins/1154860 to your computer and use it in GitHub Desktop.
unfiltered + servlet
package dwins.web
class Unfiltered extends unfiltered.filter.Planify ({
case GET(Path("/")) => Ok ~> TextContent ~> Text("Hello")
})
<filter>
<filter-name>unfiltered</filter-name>
<filter-class>dwins.web.Unfiltered</filter-class>
</filter>
<filter-mapping>
<filter-name>unfiltered</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- obviously not a full webapp -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment