aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2011-01-18 13:38:46 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2011-01-18 13:38:46 +0000
commitf5c8e2fe9d8461705b6dbba368bdbf30dd57b063 (patch)
treee6561357e3491042bed4d474ef41c207568fcf1e /src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
parentc5e87da980fc4f470809ead7bd2e9550c4a0d0de (diff)
downloadvaadin-framework-f5c8e2fe9d8461705b6dbba368bdbf30dd57b063.tar.gz
vaadin-framework-f5c8e2fe9d8461705b6dbba368bdbf30dd57b063.zip
Minor refactorings and opening api for customized communication implementations
svn changeset:16928/svn branch:6.5
Diffstat (limited to 'src/com/vaadin/terminal/gwt/client/ApplicationConnection.java')
-rwxr-xr-xsrc/com/vaadin/terminal/gwt/client/ApplicationConnection.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
index 624f3beee7..5cb50e1f1e 100755
--- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
+++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
@@ -91,7 +91,7 @@ public class ApplicationConnection {
public static final String ATTRIBUTE_ERROR = "error";
// will hold the UIDL security key (for XSS protection) once received
- private String uidl_security_key = "init";
+ private String uidlSecurityKey = "init";
private final HashMap<String, String> resourcesMap = new HashMap<String, String>();
@@ -391,7 +391,7 @@ public class ApplicationConnection {
final String extraParams, final boolean forceSync) {
startRequest();
// Security: double cookie submission pattern
- final String rd = uidl_security_key + VAR_BURST_SEPARATOR + requestData;
+ final String rd = uidlSecurityKey + VAR_BURST_SEPARATOR + requestData;
VConsole.log("Making UIDL Request with params: " + rd);
String uri;
if (configuration.usePortletURLs()) {
@@ -795,7 +795,7 @@ public class ApplicationConnection {
// Get security key
if (json.containsKey(UIDL_SECURITY_TOKEN_ID)) {
- uidl_security_key = json.getString(UIDL_SECURITY_TOKEN_ID);
+ uidlSecurityKey = json.getString(UIDL_SECURITY_TOKEN_ID);
}
if (json.containsKey("resources")) {
@@ -2288,6 +2288,14 @@ public class ApplicationConnection {
windowName = newName;
}
+ protected String getWindowName() {
+ return windowName;
+ }
+
+ protected String getUidlSecurityKey() {
+ return uidlSecurityKey;
+ }
+
/**
* Use to notify that the given component's caption has changed; layouts may
* have to be recalculated.