package page.com.jfirewalltest;

import org.wikiwebserver.core.WareHouse;
import org.wikiwebserver.handler.http.interfaces.*;

import page.config.SiteTemplatedPage;

import static org.wikiwebserver.html.HTMLHelper.*;

public class Launch extends SiteTemplatedPage implements HTTPResponder {
    
    public void generate() {
        addResourceRoot("/templates/com/jfirewalltest/");
        addCSSLink("jfirewalltest.css"); 
        
        setTitle("Launch - JFirewallTest");
        
        String launcher = WareHouse.getUrlPathForClass(JNLP.class);
        append(h(1, "Launch JFirewallTest") +
               a(launcher, image("launch.gif", "Launch JFirewallTest", "align='right'")) +
               p("JFirewallTest is a free Java webstart application that tests for" +
               	 " holes or open ports in your firewall.  Unlike other solutions," +
                 " JFirewallTest is a two stage testing procedure that tests all" +
                 " 65,536 ports very rapidly and will run on Windows," +
                 " Linux, Mac and other operating systems supporting <b>Java 1.5 or higher</b>.") +
                 getGoogleAdsenseBlock("6702273159", 468, 60) +
               h(2, "Application Links") +
               ul(new String[] {
                       a("/JFirewallTest.jnlp", "Java Web Start Application") + " (JFirewallTest.jnlp)",
                       a("/JFirewallTest.jar", "Standalone Java Application") + " (JFirewallTest.jar)",
                       a("/JFirewallTest.pad.xml", "Portable Application Description") + " (JFirewallTest.pad.xml)",
               }) +
               p("If you would like to show appreciation for the beta version and support" +
                 " the development of a more advanced version please make a " +
               	 a(WareHouse.getUrlPathForClass(Contributions.class), "contribution") +
               	 "."));
        
    }
}


