Sha256: 7aff349925e7408f4f7ade3546d407cf72f34e409a66606fc0ff842e78b7a244
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
# Only require jars if in the "master" process unless Kirk.sub_process? require "kirk/jetty/servlet-api-2.5" %w(util http io continuation server client).each do |mod| require "kirk/jetty/jetty-#{mod}-7.3.0.v20110203" end end module Kirk module Jetty # Gimme Jetty java_import "org.eclipse.jetty.client.HttpClient" java_import "org.eclipse.jetty.client.HttpExchange" java_import "org.eclipse.jetty.client.ContentExchange" java_import "org.eclipse.jetty.io.ByteArrayBuffer" java_import "org.eclipse.jetty.server.nio.SelectChannelConnector" java_import "org.eclipse.jetty.server.handler.AbstractHandler" java_import "org.eclipse.jetty.server.handler.ContextHandler" java_import "org.eclipse.jetty.server.handler.ContextHandlerCollection" java_import "org.eclipse.jetty.server.Server" java_import "org.eclipse.jetty.util.component.LifeCycle" java_import "org.eclipse.jetty.util.log.Log" java_import "org.eclipse.jetty.util.log.JavaUtilLog" Log.set_log Jetty::JavaUtilLog.new unless Kirk.sub_process? end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kirk-0.2.0.beta.3-java | lib/kirk/jetty.rb |
kirk-0.2.0.beta.2-java | lib/kirk/jetty.rb |
kirk-0.2.0.beta.1-java | lib/kirk/jetty.rb |