Class: Trinidad::RackupWebApp
Overview
Rack web application (looks for a rackup config.ru file).
Instance Attribute Summary
Attributes inherited from WebApp
Instance Method Summary collapse
Methods inherited from WebApp
#[], #add_context_param, #class_loader, #class_loader!, create, #default_deployment_descriptor, #default_web_xml, #define_lifecycle, #deployment_descriptor, #environment, #extensions, #generate_class_loader, #init_params, #initialize, #log_dir, #monitor, #public_root, #rack_listener, #rack_servlet, #reset!, #servlet, #solo?, #threadsafe?, #war?, #web_xml, #web_xml_context_param, #web_xml_filter?, #web_xml_listener?, #web_xml_servlet?, #work_dir
Constructor Details
This class inherits a constructor from Trinidad::WebApp
Instance Method Details
#context_listener ⇒ Object
282 |
# File 'lib/trinidad/web_app.rb', line 282 def context_listener; 'org.jruby.rack.RackServletContextListener'; end |
#context_params ⇒ Object
273 274 275 276 277 278 279 280 |
# File 'lib/trinidad/web_app.rb', line 273 def context_params add_context_param 'rack.env', environment if rackup = self.rackup rackup = File.join(rackup, 'config.ru') if File.directory?(rackup) add_context_param 'rackup.path', rackup end super end |