我正在用 GWT 编写一个应用程序,我想将它部署到 Google App Engine。我想使用 JRE 中的一些类,例如java.io.BufferedReader;
java.net.URL
javax.crypto.Cipher
java.util.zip.InflaterInputStream
,列在JRE Class White List
- https://developers.google.com/appengine/docs/java/jrewhitelist
我正在使用 eclipse,当我尝试在本地运行我的应用程序时,编译器会抛出类似[ERROR] [gwtlist] - Line 46: No source code is available for type java.net.URL; did you forget to inherit a required module?
.
在Google App Engine General Questions
- https://developers.google.com/appengine/kb/general#language中说:
...Also, Java-based applications may only use the JRE classes in the JRE class white list.
我的问题是我的想法是对还是错?这JRE Class White List
可以在客户端使用,还是仅对服务器端代码有用?在这种情况下,我不需要使用 Google App Engine,因为所有客户端代码都必须仅使用来自- https://developers.google.com/web-toolkit/doc/latestGWT
的一些 java 类纯编写/RefJreEmulation?hl=es-419#Package_java_io。在这种情况下,Google App Engine 的目标是什么?只是模拟服务器吗?JRE Emulation Reference
编辑:如果 Google App Engine 只能在服务器端模拟 JRE 类,你能告诉我应用程序在哪里运行吗?我的意思是:
应用程序部署在 Google App Engine 上。
客户端运行应用程序并登录。
服务器端代码打开其他服务器上的外部文件,解压缩并将结果发送到客户端。
我的问题是它是如何transfer
工作的?是谷歌云里面的所有东西,还是客户端必须下载这个未压缩的文件?``