Class: JettyRails::Handler::DelegateOnErrorsResponse
- Inherits:
-
Object
- Object
- JettyRails::Handler::DelegateOnErrorsResponse
- Includes:
- Java::JavaxServletHttp::HttpServletResponse
- Defined in:
- lib/jetty_rails/handler/delegate_on_errors_handler.rb
Instance Method Summary collapse
-
#initialize(original, request) ⇒ DelegateOnErrorsResponse
constructor
A new instance of DelegateOnErrorsResponse.
- #method_missing(method, *args, &blk) ⇒ Object
- #sendError(status_code) ⇒ Object
Constructor Details
#initialize(original, request) ⇒ DelegateOnErrorsResponse
Returns a new instance of DelegateOnErrorsResponse.
7 8 9 10 |
# File 'lib/jetty_rails/handler/delegate_on_errors_handler.rb', line 7 def initialize(original, request) @original = original @request = request end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &blk) ⇒ Object
16 17 18 |
# File 'lib/jetty_rails/handler/delegate_on_errors_handler.rb', line 16 def method_missing(method, *args, &blk) @original.send(method, *args, &blk) end |
Instance Method Details
#sendError(status_code) ⇒ Object
12 13 14 |
# File 'lib/jetty_rails/handler/delegate_on_errors_handler.rb', line 12 def sendError(status_code) @request.handled = false end |