Skip to content

Commit

Permalink
standardizing pubsub doc tags (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
jabubake authored May 11, 2017
1 parent 3886762 commit 2c2c204
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

// [START publish]
// [START pubsub_appengine_flex_publish]
@WebServlet(name = "Publish with PubSub", value = "/pubsub/publish")
public class PubSubPublish extends HttpServlet {

Expand Down Expand Up @@ -55,7 +55,7 @@ public void doPost(HttpServletRequest req, HttpServletResponse resp)
resp.sendError(HttpStatus.SC_INTERNAL_SERVER_ERROR, e.getMessage());
}
}
// [END publish]
// [END pubsub_appengine_flex_publish]

private Publisher publisher;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

// [START push]
// [START pubsub_appengine_flex_push]
@WebServlet(value = "/pubsub/push")
public class PubSubPush extends HttpServlet {

Expand All @@ -50,7 +50,7 @@ public void doPost(HttpServletRequest req, HttpServletResponse resp)
resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
}
}
// [END push]
// [END pubsub_appengine_flex_push]

private Message getMessage(HttpServletRequest request) throws IOException {
String requestBody = request.getReader().lines().collect(Collectors.joining("\n"));
Expand Down

0 comments on commit 2c2c204

Please sign in to comment.