Go to the documentation of this file.00001 # include "DQM/TrackerCommon/interface/CgiWriter.h"
00002
00003 void CgiWriter::output_preamble()
00004 {
00005 out->getHTTPResponseHeader().addHeader("Content-Type", "text/html");
00006 out->getHTTPResponseHeader().addHeader("Expires", "0");
00007 out->getHTTPResponseHeader().addHeader("Cache-Control", "no-store, no-cache, must-revalidate, max-age=0");
00008 out->getHTTPResponseHeader().addHeader("Cache-Control", "post-check=0, pre-check=0");
00009 out->getHTTPResponseHeader().addHeader("Pragma", "no-cache");
00010
00011 *out << cgicc::HTMLDoctype(cgicc::HTMLDoctype::eStrict) << std::endl;
00012
00013
00014 *out << cgicc::html().set("lang", "en").set("dir","ltr") << std::endl;
00015 }
00016
00017 void CgiWriter::output_head()
00018 {
00019 std::string js_file_url = contextURL + "/temporary/WebLib.js";
00020 std::string css_file_url = contextURL + "/temporary/style.css";
00021
00022 *out << cgicc::head() << std::endl;
00023
00024 *out << cgicc::script().set("src", js_file_url.c_str()) << cgicc::script() << std::endl;
00025
00026 *out << cgicc::link().set("type", "text/css").set("href", css_file_url.c_str()).set("rel", "stylesheet") << std::endl;
00027
00028 *out << cgicc::meta().set("https-equiv", "pragma").set("content", "no-cache") << std::endl;
00029
00030 *out << cgicc::head() << std::endl;
00031 }
00032
00033 void CgiWriter::output_finish()
00034 {
00035 *out << "</html>" << std::endl;
00036 }