Sha256: 252b008ddc386e55c9b8f527a216a31f6c7717ba3ef56d7ad41c06f1e37ed85c

Contents?: true

Size: 598 Bytes

Versions: 2

Compression:

Stored size: 598 Bytes

Contents

#
# filehandler.rb - file handler servlet
#
# Copyright (C) 2004-2005 Satoru Takabayashi <satoru@namazu.org> 
#     All rights reserved.
#     This is free software with ABSOLUTELY NO WARRANTY.
#
# You can redistribute it and/or modify it under the terms of 
# the GNU General Public License version 2.
#

module Gonzui
  class FileHandler < WEBrick::HTTPServlet::FileHandler
    def self.mount_point
      "doc"
    end

    def initialize(server, config, logger, dbm, catalogs)
      super(server, config.doc_directory)
    end

    GonzuiServlet.register(self)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gonzui-1.2-x86-mswin32-60 lib/gonzui/webapp/filehandler.rb
gonzui-1.2 lib/gonzui/webapp/filehandler.rb