Skip to content

Commit d48c0ae

Browse files
experiment to upgrade GAE ee10 code to use ee11
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
1 parent f373f8c commit d48c0ae

159 files changed

Lines changed: 539 additions & 569 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Source code for all public APIs for com.google.appengine.api.* packages.
9494
<dependency>
9595
<groupId>jakarta.servlet</groupId>
9696
<artifactId>jakarta.servlet-api</artifactId>
97-
<version>6.0.0</version>
97+
<version>6.1.0</version>
9898
<scope>provided</scope>
9999
</dependency>
100100
...
@@ -167,13 +167,13 @@ Source code for remote APIs for App Engine.
167167
```
168168
169169
170-
* Servlet Jarkata EE10 web.xml
170+
* Servlet Jarkata EE11 web.xml
171171
172172
```
173173
<servlet>
174174
<display-name>Remote API Servlet</display-name>
175175
<servlet-name>RemoteApiServlet</servlet-name>
176-
<servlet-class>com.google.apphosting.utils.remoteapi.EE10RemoteApiServlet</servlet-class>
176+
<servlet-class>com.google.apphosting.utils.remoteapi.EE11RemoteApiServlet</servlet-class>
177177
<load-on-startup>1</load-on-startup>
178178
</servlet>
179179
<servlet-mapping>

TRYLATESTBITSINPROD.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ are bundled as a Maven assembly under `<artifactId>runtime-deployment</artifactI
3333
* runtime-impl-jetty12.jar
3434
* runtime-shared-jetty9.jar
3535
* runtime-shared-jetty12.jar
36-
* runtime-shared-jetty12-ee10.jar
36+
* runtime-shared-jetty12-ee11.jar
3737
* runtime-main.jar
3838

3939
Let's say you want the latest from head in this github repository. You could built the 6 jars, add them at the
@@ -54,7 +54,7 @@ See the output of the runtime deployment module which contains all the jars need
5454
```
5555
ls runtime/deployment/target/runtime-deployment-*/
5656
runtime-impl-jetty12.jar runtime-main.jar runtime-shared-jetty12.jar
57-
runtime-impl-jetty9.jar runtime-shared-jetty12-ee10.jar runtime-shared-jetty9.jar
57+
runtime-impl-jetty9.jar runtime-shared-jetty12-ee11.jar runtime-shared-jetty9.jar
5858
```
5959

6060
These jars are pushed in Maven Central as well under artifact com.google.appengine:runtime-deployment.
@@ -112,8 +112,8 @@ deployed web application.
112112
<destinationFile>${appengine.runtime.location}/runtime-shared-jetty12.jar</destinationFile>
113113
</fileSet>
114114
<fileSet>
115-
<sourceFile>${appengine.runtime.location}/WEB-INF/lib/runtime-shared-jetty12-ee10-${appengine.runtime.version}.jar</sourceFile>
116-
<destinationFile>${appengine.runtime.location}/runtime-shared-jetty12-ee10.jar</destinationFile>
115+
<sourceFile>${appengine.runtime.location}/WEB-INF/lib/runtime-shared-jetty12-ee11-${appengine.runtime.version}.jar</sourceFile>
116+
<destinationFile>${appengine.runtime.location}/runtime-shared-jetty12-ee11.jar</destinationFile>
117117
</fileSet>
118118
<fileSet>
119119
<sourceFile>${appengine.runtime.location}/WEB-INF/lib/runtime-main-${appengine.runtime.version}.jar</sourceFile>

api/src/main/java/com/google/appengine/api/blobstore/ee10/BlobstoreService.java renamed to api/src/main/java/com/google/appengine/api/blobstore/ee11/BlobstoreService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.appengine.api.blobstore.ee10;
17+
package com.google.appengine.api.blobstore.ee11;
1818

1919
import com.google.appengine.api.blobstore.BlobInfo;
2020
import com.google.appengine.api.blobstore.BlobKey;

api/src/main/java/com/google/appengine/api/blobstore/ee10/BlobstoreServiceFactory.java renamed to api/src/main/java/com/google/appengine/api/blobstore/ee11/BlobstoreServiceFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.appengine.api.blobstore.ee10;
17+
package com.google.appengine.api.blobstore.ee11;
1818

1919

2020
/** Creates {@link BlobstoreService} implementations for java EE 10. */

api/src/main/java/com/google/appengine/api/blobstore/ee10/BlobstoreServiceImpl.java renamed to api/src/main/java/com/google/appengine/api/blobstore/ee11/BlobstoreServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.appengine.api.blobstore.ee10;
17+
package com.google.appengine.api.blobstore.ee11;
1818

1919
import static java.util.Objects.requireNonNull;
2020

api/src/main/java/com/google/appengine/api/mail/ee10/BounceNotificationParser.java renamed to api/src/main/java/com/google/appengine/api/mail/ee11/BounceNotificationParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.appengine.api.mail.ee10;
17+
package com.google.appengine.api.mail.ee11;
1818

1919
import com.google.appengine.api.mail.BounceNotification;
20-
import com.google.appengine.api.utils.ee10.HttpRequestParser;
20+
import com.google.appengine.api.utils.ee11.HttpRequestParser;
2121
import jakarta.servlet.http.HttpServletRequest;
2222
import java.io.IOException;
2323
import java.util.Properties;

api/src/main/java/com/google/appengine/api/taskqueue/ee10/DeferredTaskContext.java renamed to api/src/main/java/com/google/appengine/api/taskqueue/ee11/DeferredTaskContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.appengine.api.taskqueue.ee10;
17+
package com.google.appengine.api.taskqueue.ee11;
1818

1919
import com.google.apphosting.api.ApiProxy;
2020
import jakarta.servlet.http.HttpServlet;

api/src/main/java/com/google/appengine/api/utils/ee10/HttpRequestParser.java renamed to api/src/main/java/com/google/appengine/api/utils/ee11/HttpRequestParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.appengine.api.utils.ee10;
17+
package com.google.appengine.api.utils.ee11;
1818

1919
import jakarta.servlet.ServletInputStream;
2020
import jakarta.servlet.http.HttpServletRequest;

api/src/main/java/com/google/apphosting/utils/remoteapi/EE10RemoteApiServlet.java renamed to api/src/main/java/com/google/apphosting/utils/remoteapi/EE11RemoteApiServlet.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
* Remote API servlet handler for Jarkata EE APIs.
6666
*
6767
*/
68-
public class EE10RemoteApiServlet extends HttpServlet {
69-
private static final Logger log = Logger.getLogger(EE10RemoteApiServlet.class.getName());
68+
public class EE11RemoteApiServlet extends HttpServlet {
69+
private static final Logger log = Logger.getLogger(EE11RemoteApiServlet.class.getName());
7070

7171
private static final String[] OAUTH_SCOPES = new String[] {
7272
"https://www.googleapis.com/auth/appengine.apis",
@@ -78,12 +78,12 @@ public class EE10RemoteApiServlet extends HttpServlet {
7878
private HashSet<String> allowedApps = null;
7979
private final OAuthService oauthService;
8080

81-
public EE10RemoteApiServlet() {
81+
public EE11RemoteApiServlet() {
8282
this(OAuthServiceFactory.getOAuthService());
8383
}
8484

8585
// @VisibleForTesting
86-
EE10RemoteApiServlet(OAuthService oauthService) {
86+
EE11RemoteApiServlet(OAuthService oauthService) {
8787
this.oauthService = oauthService;
8888
}
8989

api/src/main/java/com/google/apphosting/utils/servlet/ee10/DeferredTaskServlet.java renamed to api/src/main/java/com/google/apphosting/utils/servlet/ee11/DeferredTaskServlet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.apphosting.utils.servlet.ee10;
17+
package com.google.apphosting.utils.servlet.ee11;
1818

1919
import com.google.appengine.api.taskqueue.DeferredTask;
20-
import com.google.appengine.api.taskqueue.ee10.DeferredTaskContext;
20+
import com.google.appengine.api.taskqueue.ee11.DeferredTaskContext;
2121
import com.google.apphosting.api.ApiProxy;
2222
import jakarta.servlet.ServletException;
2323
import jakarta.servlet.ServletInputStream;

0 commit comments

Comments
 (0)