【发布时间】:2012-06-21 09:21:57
【问题描述】:
我正在使用 GWT 编写一个应用程序,我想将其部署到 Google App Engine。我想使用一些来自 JRE 的类,比如java.io.BufferedReader;java.net.URLjavax.crypto.Cipherjava.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,因为所有客户端代码都必须仅以纯 GWT 编写,其中一些 Java 类来自 JRE Emulation Reference - https://developers.google.com/web-toolkit/doc/latest/RefJreEmulation?hl=es-419#Package_java_io。在这种情况下,Google App Engine 的目标是什么?只是模拟服务器吗?
编辑:如果 Google App Engine 只能在服务器端模拟 JRE 类,你能告诉我应用程序在哪里运行吗?我的意思是:
应用部署在 Google App Engine 上。
客户端运行应用并登录。
服务器端代码打开其他服务器上的外部文件,解压缩并将结果发送到客户端。
我的问题是transfer 是如何工作的?它是谷歌云中的所有内容,还是客户端必须下载,例如这个未压缩的文件?``
【问题讨论】:
标签: java google-app-engine gwt client whitelist