Skip to content

Commit 7a1c431

Browse files
authored
Add a comment about @WebServlet (GoogleCloudPlatform#692)
1 parent 6007d3d commit 7a1c431

File tree

23 files changed

+24
-1
lines changed

23 files changed

+24
-1
lines changed

appengine-java8/analytics/src/main/java/com/example/appengine/analytics/AnalyticsServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
// [START example]
3636
@SuppressWarnings("serial")
37+
// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required.
3738
@WebServlet(name = "analytics", description = "Analytics: Send Analytics Event to Google Analytics",
3839
urlPatterns = "/analytics")
3940
public class AnalyticsServlet extends HttpServlet {

appengine-java8/appidentity/src/main/java/com/example/appengine/appidentity/IdentityServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import javax.servlet.http.HttpServletResponse;
2727

2828
@SuppressWarnings("serial")
29+
// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required.
2930
@WebServlet(name = "appidentity", description = "AppIdentity: Get the Host Name",
3031
urlPatterns = "/appidentity/identity")
3132
public class IdentityServlet extends HttpServlet {

appengine-java8/appidentity/src/main/java/com/example/appengine/appidentity/SignForAppServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import javax.servlet.http.HttpServletResponse;
4343

4444
@SuppressWarnings("serial")
45+
// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required.
4546
@WebServlet(name = "signforapp", description = "AppIdentity: Sign 'abcdefg'",
4647
urlPatterns = "/appidentity/sign")
4748
public class SignForAppServlet extends HttpServlet {

appengine-java8/appidentity/src/main/java/com/example/appengine/appidentity/UrlShortenerServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import javax.servlet.http.HttpServletResponse;
2626

2727
@SuppressWarnings("serial")
28+
// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required.
2829
@WebServlet(name = "UrlShortener", description = "AppIdentity: Url Shortener",
2930
urlPatterns = "/appidentity/shorten")
3031
public class UrlShortenerServlet extends HttpServlet {

appengine-java8/cloudsql/src/main/java/com/example/appengine/cloudsql/CloudSqlServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
// [START example]
3939
@SuppressWarnings("serial")
40+
// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required.
4041
@WebServlet(name = "CloudSQL", description = "CloudSQL: Write low order IP address to Cloud SQL",
4142
urlPatterns = "/cloudsql")
4243
public class CloudSqlServlet extends HttpServlet {

appengine-java8/gaeinfo/src/main/java/com/example/appengine/standard/GAEInfoServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
// [START example]
3737
@SuppressWarnings({"serial"})
38+
// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required.
3839
@WebServlet(name = "GAEInfo", description = "GAEInfo: Write info about GAE Standard",
3940
urlPatterns = "/gaeinfo")
4041
//CHECKSTYLE:OFF

appengine-java8/images/src/main/java/com/example/appengine/images/ImagesServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
// [START example]
4545
@SuppressWarnings("serial")
46+
// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required.
4647
@WebServlet(name = "images",
4748
description = "Images: Write an image to a bucket and display it in various sizes",
4849
urlPatterns = "/images")

appengine-java8/logs/src/main/java/com/example/appengine/logs/LogsServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
// Get request logs along with their app log lines and display them 5 at
3535
// a time, using a Next link to cycle through to the next 5.
36+
// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required.
3637
@WebServlet(name = "logs", description = "Logs: Display 5 lines of the request log",
3738
urlPatterns = "/logs")
3839
public class LogsServlet extends HttpServlet {

appengine-java8/memcache/src/main/java/com/example/appengine/memcache/MemcacheAsyncCacheServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import javax.servlet.http.HttpServletResponse;
3434

3535
@SuppressWarnings("serial")
36+
// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required.
3637
@WebServlet(name = "MemcacheAsync", description = "Memcache: Async Access",
3738
urlPatterns = "/memcache/async")
3839
public class MemcacheAsyncCacheServlet extends HttpServlet {

appengine-java8/memcache/src/main/java/com/example/appengine/memcache/MemcacheBestPracticeServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
// [START example]
3333
@SuppressWarnings("serial")
34+
// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required.
3435
@WebServlet(name = "memcache", description = "Memcache: Best Practices",
3536
urlPatterns = "/memcache")
3637
public class MemcacheBestPracticeServlet extends HttpServlet {

0 commit comments

Comments
 (0)