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.65 lib/rex/proto/http/handler.rb
librex-0.0.63 lib/rex/proto/http/handler.rb
librex-0.0.54 lib/rex/proto/http/handler.rb
librex-0.0.53 lib/rex/proto/http/handler.rb
librex-0.0.52 lib/rex/proto/http/handler.rb
librex-0.0.51 lib/rex/proto/http/handler.rb
librex-0.0.50 lib/rex/proto/http/handler.rb
librex-0.0.49 lib/rex/proto/http/handler.rb
librex-0.0.48 lib/rex/proto/http/handler.rb
librex-0.0.47 lib/rex/proto/http/handler.rb
librex-0.0.46 lib/rex/proto/http/handler.rb
librex-0.0.44 lib/rex/proto/http/handler.rb
librex-0.0.43 lib/rex/proto/http/handler.rb
librex-0.0.42 lib/rex/proto/http/handler.rb
librex-0.0.41 lib/rex/proto/http/handler.rb
librex-0.0.40 lib/rex/proto/http/handler.rb
librex-0.0.39 lib/rex/proto/http/handler.rb
librex-0.0.38 lib/rex/proto/http/handler.rb
librex-0.0.37 lib/rex/proto/http/handler.rb
librex-0.0.36 lib/rex/proto/http/handler.rb