summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-10-24 12:36:57 +0000
committerVaadin Code Review <review@vaadin.com>2012-10-24 12:36:57 +0000
commit84d1a4d033daf17fa2542c6ed1029ec3723a3f04 (patch)
tree84c7fb69ba4fdd2de5806773d69d0ce1f82c2e20 /server
parent1622ae59a84d4cf44601b45f56346f45921a1bf9 (diff)
parent37a086c6895ca5ab8c9a437a84d97c7bd3f5376b (diff)
downloadvaadin-framework-84d1a4d033daf17fa2542c6ed1029ec3723a3f04.tar.gz
vaadin-framework-84d1a4d033daf17fa2542c6ed1029ec3723a3f04.zip
Merge "Refactor GET parameter names to ApplicationConstants"
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/server/AbstractCommunicationManager.java21
1 files changed, 9 insertions, 12 deletions
diff --git a/server/src/com/vaadin/server/AbstractCommunicationManager.java b/server/src/com/vaadin/server/AbstractCommunicationManager.java
index 7274ff8caf..5bbf8f5cea 100644
--- a/server/src/com/vaadin/server/AbstractCommunicationManager.java
+++ b/server/src/com/vaadin/server/AbstractCommunicationManager.java
@@ -142,8 +142,6 @@ public abstract class AbstractCommunicationManager implements Serializable {
/* Same as in apache commons file upload library that was previously used. */
private static final int MAX_UPLOAD_BUFFER_SIZE = 4 * 1024;
- private static final String GET_PARAM_ANALYZE_LAYOUTS = "analyzeLayouts";
-
/**
* The session this communication manager is used for
*/
@@ -192,8 +190,6 @@ public abstract class AbstractCommunicationManager implements Serializable {
private static final String UTF8 = "UTF8";
- private static final String GET_PARAM_HIGHLIGHT_CONNECTOR = "highlightConnector";
-
private static String readLine(InputStream stream) throws IOException {
ByteArrayOutputStream bout = new ByteArrayOutputStream();
int readByte = stream.read();
@@ -555,11 +551,12 @@ public abstract class AbstractCommunicationManager implements Serializable {
boolean analyzeLayouts = false;
if (repaintAll) {
// analyzing can be done only with repaintAll
- analyzeLayouts = (request.getParameter(GET_PARAM_ANALYZE_LAYOUTS) != null);
+ analyzeLayouts = (request
+ .getParameter(ApplicationConstants.PARAM_ANALYZE_LAYOUTS) != null);
- if (request.getParameter(GET_PARAM_HIGHLIGHT_CONNECTOR) != null) {
- String pid = request
- .getParameter(GET_PARAM_HIGHLIGHT_CONNECTOR);
+ String pid = request
+ .getParameter(ApplicationConstants.PARAM_HIGHLIGHT_CONNECTOR);
+ if (pid != null) {
highlightedConnector = uI.getConnectorTracker().getConnector(
pid);
highlightConnector(highlightedConnector);
@@ -713,19 +710,19 @@ public abstract class AbstractCommunicationManager implements Serializable {
sb.append(".java");
sb.append(":1)");
int l = 1;
- for (ClientConnector conector2 : h) {
+ for (ClientConnector connector2 : h) {
sb.append("\n");
for (int i = 0; i < l; i++) {
sb.append(" ");
}
l++;
- Class<? extends ClientConnector> componentClass = conector2
+ Class<? extends ClientConnector> connectorClass = connector2
.getClass();
- Class<?> topClass = componentClass;
+ Class<?> topClass = connectorClass;
while (topClass.getEnclosingClass() != null) {
topClass = topClass.getEnclosingClass();
}
- sb.append(componentClass.getName());
+ sb.append(connectorClass.getName());
sb.append("(");
sb.append(topClass.getSimpleName());
sb.append(".java:1)");