#ifndef ____welcome_h__
#define ____welcome_h__

#include "HTTPPage.h"

namespace http {

   class __welcome : public HTTPPage {
   
      int processCommand(std::string request, 
                         core::TCPSession *session, 
                         HTTPSession *httpSession, 
                         HTTPRequest *httpRequest, 
                         std::stringstream &data) override {
                            
         data << "<div class=\"window\">\
            <p>You have successfully set up a JETServer.\
            <br>Session Id: " << httpSession->getSessionId() << "\
            <br>The configuration has not yet been established for this web site.</p>\
            <input type=\"button\" onmousedown=\"getPage('/setupadmin','main'); return true;\" name=\"button1\" value=\"Configure\">\
            </div>";
            
         httpRequest->response.addHeader("Content-Type", "text/html");   

         return true;
      }        
   };
}

#endif
