annotate src/global/web/Ads.java @ 25:ea1d2e6e2a49

semiprivate
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 18 Jun 2020 19:26:15 -0600
parents 544442684af6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 package global.web;
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 import global.HtmlGlobalUtils;
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 import java.io.PrintWriter;
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 import java.io.IOException;
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 import javax.servlet.http.HttpServlet;
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8 import javax.servlet.http.HttpServletRequest;
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 import javax.servlet.http.HttpServletResponse;
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 public final class Ads extends HttpServlet {
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13 protected void service(HttpServletRequest request,HttpServletResponse response)
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 throws IOException
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 {
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 response.setContentType("text/plain");
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 response.setCharacterEncoding("UTF-8");
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 PrintWriter out = response.getWriter();
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19
13
544442684af6 add my publisher id to ads.txt
raven <mazdarulez@hotmail.com>
parents: 10
diff changeset
20 out.println("google.com, pub-1691702211255830, DIRECT, f08c47fec0942fa0");
10
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 out.println("google.com, pub-6750305871516672, DIRECT, f08c47fec0942fa0");
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 }
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23
02b2fdfc07e2 ads.txt
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24 }