Skip to content

Commit

Permalink
App Engine standard env uses Java Servlets 2.5.
Browse files Browse the repository at this point in the history
According to:
https://cloud.google.com/appengine/docs/java/runtime#Java_Introduction

"App Engine uses the Java Servlet 2.5 standard for web applications."

This updates these samples to use version 2.5. Annotations are not
supported. I see that the SendGrid servlet already has a web.xml
defined, so the annotation were redundant, anyway (and not functional).
  • Loading branch information
tswast committed Jun 28, 2016
1 parent d5916da commit d1bd8d7
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions appengine/analytics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions appengine/mailgun/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions appengine/mailjet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions appengine/memcache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Copyright 2015 Google Inc. All Rights Reserved.
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions appengine/remote/remote-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions appengine/sendgrid/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Copyright 2015 Google Inc. All Rights Reserved.
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@
import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

// [START example]
@SuppressWarnings("serial")
@WebServlet(name = "sendemail", value = "/send/email")
public class SendEmailServlet extends HttpServlet {

@Override
Expand Down
4 changes: 2 additions & 2 deletions appengine/twilio/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ Copyright 2015 Google Inc. All Rights Reserved.
<!-- [END dependencies] -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Expand Down

0 comments on commit d1bd8d7

Please sign in to comment.