From 266daa34fcf5d5befe71c1e2612ca363f41e4f66 Mon Sep 17 00:00:00 2001 From: Kurtis Van Gent Date: Tue, 19 Dec 2017 13:33:56 -0800 Subject: [PATCH] Rename LogPayload to TaskHandler. --- .../main/java/com/example/cloudtasks/CreateTaskServlet.java | 2 +- .../{LogPayloadServlet.java => TaskHandlerServlet.java} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename flexible/cloud-tasks/src/main/java/com/example/cloudtasks/{LogPayloadServlet.java => TaskHandlerServlet.java} (93%) diff --git a/flexible/cloud-tasks/src/main/java/com/example/cloudtasks/CreateTaskServlet.java b/flexible/cloud-tasks/src/main/java/com/example/cloudtasks/CreateTaskServlet.java index 03eb3809e28..3c07a7cd1a7 100644 --- a/flexible/cloud-tasks/src/main/java/com/example/cloudtasks/CreateTaskServlet.java +++ b/flexible/cloud-tasks/src/main/java/com/example/cloudtasks/CreateTaskServlet.java @@ -98,7 +98,7 @@ private static Task createTask( payload = BaseEncoding.base64().encode(payload.getBytes()); AppEngineHttpRequest postRequest = new AppEngineHttpRequest() .setHttpMethod("POST") - .setRelativeUrl("/log_payload") + .setRelativeUrl("/example_task_handler") .setPayload(payload); Task task = new Task().setAppEngineHttpRequest(postRequest); diff --git a/flexible/cloud-tasks/src/main/java/com/example/cloudtasks/LogPayloadServlet.java b/flexible/cloud-tasks/src/main/java/com/example/cloudtasks/TaskHandlerServlet.java similarity index 93% rename from flexible/cloud-tasks/src/main/java/com/example/cloudtasks/LogPayloadServlet.java rename to flexible/cloud-tasks/src/main/java/com/example/cloudtasks/TaskHandlerServlet.java index 72739656993..53e10ec4069 100644 --- a/flexible/cloud-tasks/src/main/java/com/example/cloudtasks/LogPayloadServlet.java +++ b/flexible/cloud-tasks/src/main/java/com/example/cloudtasks/TaskHandlerServlet.java @@ -26,9 +26,9 @@ import javax.servlet.http.HttpServletResponse; -@WebServlet(value = "/log_payload") +@WebServlet(value = "/example_task_handler") @SuppressWarnings("serial") -public class LogPayloadServlet extends HttpServlet { +public class TaskHandlerServlet extends HttpServlet { @Override public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {