From 66ec566a78bd350b7a59ac43b6b7968f20e865eb Mon Sep 17 00:00:00 2001 From: carieshmarie Date: Mon, 9 May 2016 08:17:57 -0700 Subject: [PATCH 1/2] Update MailjetServlet.java Add region tags for documentation --- .../java/com/example/managedvms/mailjet/MailjetServlet.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/managed_vms/mailjet/src/main/java/com/example/managedvms/mailjet/MailjetServlet.java b/managed_vms/mailjet/src/main/java/com/example/managedvms/mailjet/MailjetServlet.java index 8fedc3cf636..efcace58265 100644 --- a/managed_vms/mailjet/src/main/java/com/example/managedvms/mailjet/MailjetServlet.java +++ b/managed_vms/mailjet/src/main/java/com/example/managedvms/mailjet/MailjetServlet.java @@ -14,6 +14,7 @@ * limitations under the License. */ +// [START mailjet_imports] package com.example.managedvms.mailjet; import com.mailjet.client.MailjetClient; @@ -21,6 +22,7 @@ import com.mailjet.client.MailjetResponse; import com.mailjet.client.errors.MailjetException; import com.mailjet.client.resource.Email; +// [END mailjet_imports] import org.json.JSONArray; import org.json.JSONObject; @@ -33,6 +35,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +// [START app] @SuppressWarnings("serial") @WebServlet(name = "mailjet", value = "/send/email") public class MailjetServlet extends HttpServlet { @@ -67,3 +70,4 @@ public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOEx } } } +// [END mailjet_imports] From a3a601da64fd21295a29d636f736df52f1d6498d Mon Sep 17 00:00:00 2001 From: carieshmarie Date: Mon, 9 May 2016 09:31:41 -0700 Subject: [PATCH 2/2] Update MailjetServlet.java --- .../java/com/example/managedvms/mailjet/MailjetServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/managed_vms/mailjet/src/main/java/com/example/managedvms/mailjet/MailjetServlet.java b/managed_vms/mailjet/src/main/java/com/example/managedvms/mailjet/MailjetServlet.java index efcace58265..33411dc2717 100644 --- a/managed_vms/mailjet/src/main/java/com/example/managedvms/mailjet/MailjetServlet.java +++ b/managed_vms/mailjet/src/main/java/com/example/managedvms/mailjet/MailjetServlet.java @@ -70,4 +70,4 @@ public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOEx } } } -// [END mailjet_imports] +// [END app]