Sha256: 9643f6085f7f6fdb58a2ee5be65a046ee9039de85c68a7a7863f57cd16c1942b

Contents?: true

Size: 633 Bytes

Versions: 43

Compression:

Stored size: 633 Bytes

Contents

module Rex
module Proto
module Http

###
#
# This class acts as the base class for all handlers.
#
###
class Handler

	require 'rex/proto/http/handler/erb'
	require 'rex/proto/http/handler/proc'

	#
	# Initializes the handler instance as being associated with the supplied
	# server.
	#
	def initialize(server)
		self.server = server
	end

	#
	# By default, handlers do not require a relative resource.
	#
	def self.relative_resource_required?
		false
	end

	#
	# Calls the class method.
	#
	def relative_resource_required?
		self.class.relative_resource_required?
	end

protected

	attr_accessor :server # :nodoc:

end


end
end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.35 lib/rex/proto/http/handler.rb
librex-0.0.34 lib/rex/proto/http/handler.rb
librex-0.0.33 lib/rex/proto/http/handler.rb
librex-0.0.32 lib/rex/proto/http/handler.rb
librex-0.0.31 lib/rex/proto/http/handler.rb
librex-0.0.30 lib/rex/proto/http/handler.rb
librex-0.0.29 lib/rex/proto/http/handler.rb
librex-0.0.28 lib/rex/proto/http/handler.rb
librex-0.0.27 lib/rex/proto/http/handler.rb
librex-0.0.26 lib/rex/proto/http/handler.rb
librex-0.0.25 lib/rex/proto/http/handler.rb
librex-0.0.23 lib/rex/proto/http/handler.rb
librex-0.0.21 lib/rex/proto/http/handler.rb
librex-0.0.19 lib/rex/proto/http/handler.rb
librex-0.0.17 lib/rex/proto/http/handler.rb
librex-0.0.13 lib/rex/proto/http/handler.rb
librex-0.0.12 lib/rex/proto/http/handler.rb
librex-0.0.7 lib/rex/proto/http/handler.rb
librex-0.0.6 lib/rex/proto/http/handler.rb
librex-0.0.5 lib/rex/proto/http/handler.rb