Main Page | Namespace List | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

NEnvironment.h

Go to the documentation of this file.
00001 00024 #ifndef MNST_H_NEnvironment 00025 #define MNST_H_NEnvironment 00026 00027 #include <string> 00028 #include <map> 00029 00030 namespace monsterworks { 00031 namespace cgi { 00032 00034 namespace NEnvironment { 00035 00037 00042 enum EKeys { 00043 00044 //server 00045 00046 EKey_ServerName, 00047 EKey_ServerSoftware, 00048 EKey_ServerAddress, 00049 EKey_ServerSignature, 00050 EKey_ServerProtocol, 00051 EKey_ServerPort, 00052 EKey_ServerAdministrator, 00053 EKey_GatewayInterface, 00054 EKey_DocumentRoot, 00055 EKey_ExecutablePath, 00056 00057 //script 00058 00059 EKey_ScriptURI, 00060 EKey_ScriptName, 00061 EKey_ScriptURL, 00062 EKey_ScriptFilename, 00063 00064 //data 00065 00066 EKey_RequestURI, 00067 EKey_RequestMethod, 00068 EKey_ContentType, 00069 EKey_ContentLength, 00070 EKey_QueryString, 00071 EKey_PathInformation, 00072 EKey_PathTranslated, 00073 00074 //requester 00075 00076 EKey_RemoteHost, 00077 EKey_RemoteAddress, 00078 EKey_RemoteIdentity, 00079 EKey_RemotePort, 00080 EKey_AuthenticationType, 00081 EKey_RemoteUser, 00082 00083 //HTTP headers 00084 00085 EKey_HTTPUserAgent, 00086 EKey_HTTPAccept, 00087 EKey_HTTPHost, 00088 EKey_HTTPAcceptEncoding, 00089 EKey_HTTPConnection, 00090 EKey_HTTPAcceptLanguage, 00091 }; 00092 00094 typedef std::map<EKeys,std::string> Variables; 00095 00097 std::string GetValue(EKeys inKey); 00098 00100 std::string GetValue(const std::string& inName); 00101 00103 bool IsPostMethod(); 00104 00106 bool IsGetMethod(); 00107 00109 const Variables& GetVariables(); 00110 } 00111 00112 } 00113 } 00114 00115 #endif

monsterworks Code by Monsterworks. Made available under the GNU Public License.
Documentation by doxygen.