summaryrefslogtreecommitdiff
path: root/apps/JAWS/server/HTTP_Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/JAWS/server/HTTP_Config.h')
-rw-r--r--apps/JAWS/server/HTTP_Config.h86
1 files changed, 0 insertions, 86 deletions
diff --git a/apps/JAWS/server/HTTP_Config.h b/apps/JAWS/server/HTTP_Config.h
deleted file mode 100644
index 866e1d044fa..00000000000
--- a/apps/JAWS/server/HTTP_Config.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/* -*- c++ -*- */
-// Hey, Emacs! This is a C++ file!
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// apps
-//
-// = FILENAME
-// HTTP_Config.h
-//
-// = AUTHOR
-// James Hu
-//
-// ============================================================================
-
-class HTTP_Config_Info;
-
-class HTTP_Config
- // = TITLE
- // Stores server configuration information.
- // Someday, this will be hip and cool and be able to parse
- // NCSA httpd style config files like Apache does. For now,
- // I'm just going to hack in environment variable stuff.
- //
- // Designed around Singleton pattern.
-{
-public:
- static HTTP_Config_Info *instance (void);
-
-private:
- static HTTP_Config_Info *instance_;
-};
-
-class HTTP_Config_Info
- // = TITLE
- // This is where the information is really stored.
-{
- // Who are my friends?
- friend HTTP_Config;
-
-public:
- HTTP_Config_Info (void);
- ~HTTP_Config_Info (void);
-
- // Accessors to the information
-
- const char * document_root (void) const;
- // Where the root of the document tree begins. This prevents
- // clients from being able to examine your entire filesystem.
-
- const char * cgi_path (void) const;
- // A search path for CGI files.
-
- const char * user_dir (void) const;
- // The directory which is appended to a home user directory,
- // e.g., ".www-docs" or "public_html".
-
- const char * dir_index (void) const;
- // What is the default index file for a directory,
- // e.g., "index.html".
-
- int proxy_flag (void) const;
- // Will the server support proxy requests?
-
-private:
- // Accesors which can set the data
-
- char * document_root (char *dr_string);
- char * cgi_path (char *cp_string);
- char * user_dir (char *ud_string);
- char * dir_index (char *di_string);
-
- int proxy_flag (int pf);
-
-private:
- // Data members
-
- char *document_root_;
- char *cgi_path_;
- char *user_dir_;
- char *dir_index_;
-
- int proxy_flag_;
-};