ActionControllerServlet (Class)

In: libraries/action_controller_servlet.rb
Parent: HTTPServlet::AbstractServlet

Methods

Included Modules

Public Class methods

[Source]

    # File libraries/action_controller_servlet.rb, line 10
10:   def self.template_root() @@template_root end

[Source]

    # File libraries/action_controller_servlet.rb, line 11
11:   def self.template_root=(template_root) @@template_root = template_root end

Public Instance methods

[Source]

    # File libraries/action_controller_servlet.rb, line 17
17:   def do_GET(req, res)
18:     @req, @res = req, res
19: 
20:     @res['Content-Type']  = "text/html; charset=utf-8"
21:     @res['Pragma']        = "no-cache"
22:     @res['Cache-Control'] = "no-cache"
23: 
24:     @params = @req.query
25:     @assigns = {}
26:     @performed_render = @performed_redirect = false
27: 
28:     @logger.info "Performing #{action_name}"
29:     @logger.info "  Parameters: #{@params.inspect}"
30:     @logger.info "  Cookies: #{@req.cookies.collect { |c| "#{c.name} => #{c.value}" }.join(", ") }"
31: 
32:     perform_action
33:     @res
34:   end

[Source]

    # File libraries/action_controller_servlet.rb, line 15
15:   def do_POST(req, res) do_GET(req, res) end

[Validate]