annotate src/global/web/PoweredBy.java @ 8:5e0dd77e73e6

Index.java
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 25 Jul 2019 09:53:39 -0600
parents 7ecd1a4ef557
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 package global.web;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 import global.HtmlGlobalUtils;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 import javax.servlet.ServletException;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 import javax.servlet.http.HttpServlet;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8 import javax.servlet.http.HttpServletRequest;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 import javax.servlet.http.HttpServletResponse;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 import java.io.IOException;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 import java.io.PrintWriter;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 public final class PoweredBy extends HttpServlet {
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 protected void service(HttpServletRequest request,HttpServletResponse response)
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 throws ServletException, IOException
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 {
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 PrintWriter out = response.getWriter();
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 out.print( "\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n " );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 HtmlGlobalUtils.head(request, response, "Powered By");
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23 out.print( "\r\n <style>\r\n table{width:30em}\r\n @media (max-width: 950px) {\r\n td{display:block}\r\n table{width:auto}\r\n }\r\n </style>\r\n </head>\r\n <body lato>\r\n " );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24 HtmlGlobalUtils.header(request,response);
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
25 out.print( "\r\n <div content center paddingTop>\r\n <h1 oswald>Nabble is powered by the following:</h1>\r\n <table align=\"center\">\r\n <tr valign=\"top\">\r\n <td align=\"center\">\r\n <p><a href=\"http://java.com/en/download/\"><img src=\"/assets/images/java.gif\" border=\"0\" /></a></p>\r\n <p><a href=\"http://jetty.mortbay.org/\"><img src=\"/assets/images/jetty.gif\" border=\"0\" /></a></p>\r\n <p><a href=\"http://www.postgresql.org/\"><img src=\"/assets/images/postgres.gif\" border=\"0\" /></a></p>\r\n <p><a href=\"http://www.exim.org/\"><img src=\"/assets/images/exim.png\" border=\"0\" /></a></p>\r\n <p><a href=\"http://www.debian.org/\"><img src=\"/assets/images/debian.png\" border=\"0\" /></a></p>\r\n </td>\r\n <td align=\"center\">\r\n <p><a href=\"http://lucene.apache.org/java/\">Lucene</a></p>\r\n <p><a href=\"http://jquery.com/\">jQuery</a></p>\r\n <p><a href=\"http://subversion.tigris.org/\">Subversion</a></p>\r\n <p><a href=\"https://code.google.com/p/luan-java/\">Luan</a></p>\r\n <p><a href=\"http://logging.apache.org/log4j/\">Log4j</a></p>\r\n <p><a href=\"http://www.slf4j.org/\">SLF4J</a></p>\r\n <p><a href=\"http://mstor.sourceforge.net/\">mstor</a></p>\r\n <p><a href=\"http://gif-plugin.dev.java.net/\">gif-plugin</a></p>\r\n <p><a href=\"http://jakarta.apache.org/commons/fileupload/\">FileUpload</a></p>\r\n <p><a href=\"http://code.google.com/p/caching-filter/\">caching-filter</a></p>\r\n <p><a href=\"https://github.com/tig100/JdbcPgBackup\">JdbcPgBackup</a></p>\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n " );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26 HtmlGlobalUtils.footer(request,response);
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27 out.print( "\r\n </body>\r\n</html>\r\n" );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
28
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
29 }
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
30 }
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
31