Class: Rex::Proto::Http::Handler
- Inherits:
-
Object
- Object
- Rex::Proto::Http::Handler
- Defined in:
- lib/rex/proto/http/handler.rb
Overview
This class acts as the base class for all handlers.
Defined Under Namespace
Instance Attribute Summary collapse
-
#server ⇒ Object
protected
:nodoc:.
Class Method Summary collapse
-
.relative_resource_required? ⇒ Boolean
By default, handlers do not require a relative resource.
Instance Method Summary collapse
-
#initialize(server) ⇒ Handler
constructor
Initializes the handler instance as being associated with the supplied server.
-
#relative_resource_required? ⇒ Boolean
Calls the class method.
Constructor Details
#initialize(server) ⇒ Handler
Initializes the handler instance as being associated with the supplied server.
18 19 20 |
# File 'lib/rex/proto/http/handler.rb', line 18 def initialize(server) self.server = server end |
Instance Attribute Details
#server ⇒ Object (protected)
:nodoc:
38 39 40 |
# File 'lib/rex/proto/http/handler.rb', line 38 def server @server end |
Class Method Details
.relative_resource_required? ⇒ Boolean
By default, handlers do not require a relative resource.
25 26 27 |
# File 'lib/rex/proto/http/handler.rb', line 25 def self.relative_resource_required? false end |
Instance Method Details
#relative_resource_required? ⇒ Boolean
Calls the class method.
32 33 34 |
# File 'lib/rex/proto/http/handler.rb', line 32 def relative_resource_required? self.class.relative_resource_required? end |