I get two keys, one for my project.appspot.com and one for www.domain.tld
which cnames to project, and I tell it to use key that is relavant for host
and domain.
This is what I do:
private void setupMapKeys() {
mapKeys.put("127.0.0.1", "ABQIAAAAoVxd5Qo5vFe3MnANAR_5IhQut5BYGs]");
mapKeys.put("abc.com", "ABQIAAAAoVxd5Qo5vFe3MnANAR_5I");
mapKeys.put("gawkat.com", "ABQIAAAAoVxd5Qo5vFe3MnANAR_5IhTp");
mapKeys.put("asdfsdfaps.com", "ABQIAAAAoVxd5Qo5vFe3MnANAR_5IQ");
mapKeys.put("v3asdfasdf3.appspot.com", "ABQIAAAAoVxd5Qo5vFe3MnANAR_5");
mapKeys.put("asdfasdf-hr.appspot.com", "ABQIAAAAoVxd5Qo5vFe3MnAN");
}
public String getMapKey() {
String url = Window.Location.getHost();
if (url.contains(":")) {
url = url.replaceAll(":.*", "");
}
String s = mapKeys.get(url);
return s;
}
Brandon Donnelson
http://gwt-examples.googlecode.com
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.