Skip to content

Instantly share code, notes, and snippets.

@csmuc
Created August 29, 2008 06:01
Show Gist options
  • Save csmuc/7912 to your computer and use it in GitHub Desktop.
Save csmuc/7912 to your computer and use it in GitHub Desktop.
include_class 'org.mortbay.jetty.webapp.WebAppContext'
include_class 'org.jruby.rack.RackFilter'
webapp = WebAppContext.new(server, File.expand_path(RAILS_ROOT) + "/public", "/")
rack = webapp.servletHandler.newFilterHolder(RackFilter)
"no newFilterHolder with arguments matching [class org.jruby.RubyClass] on object #<Java::OrgMortbayJettyServlet::ServletHandler:0x700ff8 @java_object=ServletHandler@117ad7b>"
Jetty API:
ServletHandler:
public FilterHolder newFilterHolder(Class filter)
http://docs.huihoo.com/javadoc/jetty/6.1/org/mortbay/jetty/servlet/ServletHandler.html#newFilterHolder(java.lang.Class)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment