GeezerVison is showing github.com — Add a comment about @WebServlet (#692) · nnegrey/java-docs-samples@7a1c431
File treeExpand file treeCollapse file tree Open diff view settings analytics/src/main/java/com/example/appengine/analytics appidentity/src/main/java/com/example/appengine/appidentity cloudsql/src/main/java/com/example/appengine/cloudsql gaeinfo/src/main/java/com/example/appengine/standard images/src/main/java/com/example/appengine/images logs/src/main/java/com/example/appengine/logs memcache/src/main/java/com/example/appengine/memcache oauth2/src/main/java/com/example/appengine remote-server/src/main/java/com/example/appengine/remote requests/src/main/java/com/example/appengine/requests taskqueues-deferred/src/main/java/com/google/cloud/taskqueue/samples taskqueues-pull/src/main/java/com/example/taskqueue taskqueues-push/src/main/java/com/example/appengine/taskqueue/push urlfetch/src/main/java/com/example/appengine users/src/main/java/com/example/appengine/users
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: appengine-java8/analytics/src/main/java/com/example/appengine/analytics/AnalyticsServlet.java +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 34 | 34 |
| 35 | 35 | // [START example] | 36 | 36 | @SuppressWarnings("serial") | | 37 | +// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required. | 37 | 38 | @WebServlet(name = "analytics", description = "Analytics: Send Analytics Event to Google Analytics", | 38 | 39 | urlPatterns = "/analytics") | 39 | 40 | public class AnalyticsServlet extends HttpServlet { | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/appidentity/src/main/java/com/example/appengine/appidentity/IdentityServlet.java +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 26 | 26 | import javax.servlet.http.HttpServletResponse; | 27 | 27 |
| 28 | 28 | @SuppressWarnings("serial") | | 29 | +// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required. | 29 | 30 | @WebServlet(name = "appidentity", description = "AppIdentity: Get the Host Name", | 30 | 31 | urlPatterns = "/appidentity/identity") | 31 | 32 | public class IdentityServlet extends HttpServlet { | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/appidentity/src/main/java/com/example/appengine/appidentity/SignForAppServlet.java +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 42 | 42 | import javax.servlet.http.HttpServletResponse; | 43 | 43 |
| 44 | 44 | @SuppressWarnings("serial") | | 45 | +// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required. | 45 | 46 | @WebServlet(name = "signforapp", description = "AppIdentity: Sign 'abcdefg'", | 46 | 47 | urlPatterns = "/appidentity/sign") | 47 | 48 | public class SignForAppServlet extends HttpServlet { | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/appidentity/src/main/java/com/example/appengine/appidentity/UrlShortenerServlet.java +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 25 | 25 | import javax.servlet.http.HttpServletResponse; | 26 | 26 |
| 27 | 27 | @SuppressWarnings("serial") | | 28 | +// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required. | 28 | 29 | @WebServlet(name = "UrlShortener", description = "AppIdentity: Url Shortener", | 29 | 30 | urlPatterns = "/appidentity/shorten") | 30 | 31 | public class UrlShortenerServlet extends HttpServlet { | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/cloudsql/src/main/java/com/example/appengine/cloudsql/CloudSqlServlet.java +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 37 | 37 |
| 38 | 38 | // [START example] | 39 | 39 | @SuppressWarnings("serial") | | 40 | +// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required. | 40 | 41 | @WebServlet(name = "CloudSQL", description = "CloudSQL: Write low order IP address to Cloud SQL", | 41 | 42 | urlPatterns = "/cloudsql") | 42 | 43 | public class CloudSqlServlet extends HttpServlet { | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/gaeinfo/src/main/java/com/example/appengine/standard/GAEInfoServlet.java +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 35 | 35 |
| 36 | 36 | // [START example] | 37 | 37 | @SuppressWarnings({"serial"}) | | 38 | +// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required. | 38 | 39 | @WebServlet(name = "GAEInfo", description = "GAEInfo: Write info about GAE Standard", | 39 | 40 | urlPatterns = "/gaeinfo") | 40 | 41 | //CHECKSTYLE:OFF | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/images/src/main/java/com/example/appengine/images/ImagesServlet.java +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 43 | 43 |
| 44 | 44 | // [START example] | 45 | 45 | @SuppressWarnings("serial") | | 46 | +// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required. | 46 | 47 | @WebServlet(name = "images", | 47 | 48 | description = "Images: Write an image to a bucket and display it in various sizes", | 48 | 49 | urlPatterns = "/images") | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/logs/src/main/java/com/example/appengine/logs/LogsServlet.java +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 33 | 33 |
| 34 | 34 | // Get request logs along with their app log lines and display them 5 at | 35 | 35 | // 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. | 36 | 37 | @WebServlet(name = "logs", description = "Logs: Display 5 lines of the request log", | 37 | 38 | urlPatterns = "/logs") | 38 | 39 | public class LogsServlet extends HttpServlet { | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/memcache/src/main/java/com/example/appengine/memcache/MemcacheAsyncCacheServlet.java +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 33 | 33 | import javax.servlet.http.HttpServletResponse; | 34 | 34 |
| 35 | 35 | @SuppressWarnings("serial") | | 36 | +// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required. | 36 | 37 | @WebServlet(name = "MemcacheAsync", description = "Memcache: Async Access", | 37 | 38 | urlPatterns = "/memcache/async") | 38 | 39 | public class MemcacheAsyncCacheServlet extends HttpServlet { | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/memcache/src/main/java/com/example/appengine/memcache/MemcacheBestPracticeServlet.java +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 31 | 31 |
| 32 | 32 | // [START example] | 33 | 33 | @SuppressWarnings("serial") | | 34 | +// With @WebServlet annotation the webapp/WEB-INF/web.xml is no longer required. | 34 | 35 | @WebServlet(name = "memcache", description = "Memcache: Best Practices", | 35 | 36 | urlPatterns = "/memcache") | 36 | 37 | public class MemcacheBestPracticeServlet extends HttpServlet { | |
|