summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2011-12-22 09:42:16 +0200
committerLeif Åstrand <leif@vaadin.com>2011-12-22 10:19:47 +0200
commit0cc297225631667f76ca16fbfee49f68fca5fbb1 (patch)
tree2efdc3e860bb30a508d41bd81f68d69188aa5c52 /src
parent23f1fbcfab82d7f0bf60ea0b71e085f9b36397cb (diff)
downloadvaadin-framework-0cc297225631667f76ca16fbfee49f68fca5fbb1.tar.gz
vaadin-framework-0cc297225631667f76ca16fbfee49f68fca5fbb1.zip
RootRequiresMoreInformation -> RootRequiresMoreInformationException
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/Application.java24
-rw-r--r--src/com/vaadin/RootRequiresMoreInformationException.java (renamed from src/com/vaadin/RootRequiresMoreInformation.java)2
-rw-r--r--src/com/vaadin/terminal/WrappedRequest.java4
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java4
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java4
-rw-r--r--src/com/vaadin/terminal/gwt/server/BootstrapHandler.java4
6 files changed, 21 insertions, 21 deletions
diff --git a/src/com/vaadin/Application.java b/src/com/vaadin/Application.java
index 3875dfa860..15945d6971 100644
--- a/src/com/vaadin/Application.java
+++ b/src/com/vaadin/Application.java
@@ -134,12 +134,12 @@ public class Application implements Terminal.ErrorListener, Serializable {
* the request to get the root for
* @return integer id of the root, or <code>null</code> if no root is
* found
- * @throws RootRequiresMoreInformation
+ * @throws RootRequiresMoreInformationException
* if full details from the browser are required to resolve
* the root
*/
public Integer getPreservedRootForRequest(WrappedRequest request)
- throws RootRequiresMoreInformation;
+ throws RootRequiresMoreInformationException;
/**
* Used to tell whether the browser details are required when
@@ -171,13 +171,13 @@ public class Application implements Terminal.ErrorListener, Serializable {
private final Map<String, Integer> retainOnRefreshRoots = new HashMap<String, Integer>();
public Integer getPreservedRootForRequest(WrappedRequest request)
- throws RootRequiresMoreInformation {
+ throws RootRequiresMoreInformationException {
if (retainOnRefreshRoots.isEmpty()) {
return null;
}
BrowserDetails browserDetails = request.getBrowserDetails();
if (browserDetails == null) {
- throw new RootRequiresMoreInformation();
+ throw new RootRequiresMoreInformationException();
} else {
String windowName = browserDetails.getWindowName();
return retainOnRefreshRoots.get(windowName);
@@ -1885,7 +1885,7 @@ public class Application implements Terminal.ErrorListener, Serializable {
*
* <p>
* If {@link BrowserDetails} are required to create a Root, the
- * implementation can throw a {@link RootRequiresMoreInformation} exception.
+ * implementation can throw a {@link RootRequiresMoreInformationException} exception.
* In this case, the framework will instruct the browser to send the
* additional details, whereupon this method is invoked again with the
* browser details present in the wrapped request. Throwing the exception if
@@ -1901,19 +1901,19 @@ public class Application implements Terminal.ErrorListener, Serializable {
* @param request
* the wrapped request for which a root is needed
* @return a root instance to use for the request
- * @throws RootRequiresMoreInformation
+ * @throws RootRequiresMoreInformationException
* may be thrown by an implementation to indicate that
* {@link BrowserDetails} are required to create a root
*
* @see #getRootClassName(WrappedRequest)
* @see Root
- * @see RootRequiresMoreInformation
+ * @see RootRequiresMoreInformationException
* @see WrappedRequest#getBrowserDetails()
*
* @since 7.0
*/
protected Root getRoot(WrappedRequest request)
- throws RootRequiresMoreInformation {
+ throws RootRequiresMoreInformationException {
String rootClassName = getRootClassName(request);
try {
Class<? extends Root> rootClass = Class.forName(rootClassName)
@@ -2260,7 +2260,7 @@ public class Application implements Terminal.ErrorListener, Serializable {
* Finds the {@link Root} to which a particular request belongs. If the
* request originates from an existing Root, that root is returned. In other
* cases, the method attempts to create and initialize a new root and might
- * throw a {@link RootRequiresMoreInformation} if all required information
+ * throw a {@link RootRequiresMoreInformationException} if all required information
* is not available.
* <p>
* Please note that this method can also return a newly created
@@ -2273,17 +2273,17 @@ public class Application implements Terminal.ErrorListener, Serializable {
* @param request
* the request for which a root is desired
* @return a root belonging to the request
- * @throws RootRequiresMoreInformation
+ * @throws RootRequiresMoreInformationException
* if no existing root could be found and creating a new root
* requires additional information from the browser
*
* @see #getRoot(WrappedRequest)
- * @see RootRequiresMoreInformation
+ * @see RootRequiresMoreInformationException
*
* @since 7.0
*/
public Root getRootForRequest(WrappedRequest request)
- throws RootRequiresMoreInformation {
+ throws RootRequiresMoreInformationException {
Root root = Root.getCurrentRoot();
if (root != null) {
return root;
diff --git a/src/com/vaadin/RootRequiresMoreInformation.java b/src/com/vaadin/RootRequiresMoreInformationException.java
index 1268081978..ed0fa41437 100644
--- a/src/com/vaadin/RootRequiresMoreInformation.java
+++ b/src/com/vaadin/RootRequiresMoreInformationException.java
@@ -20,6 +20,6 @@ import com.vaadin.terminal.WrappedRequest.BrowserDetails;
*
* @since 7.0
*/
-public class RootRequiresMoreInformation extends Exception {
+public class RootRequiresMoreInformationException extends Exception {
// Nothing of interest here
}
diff --git a/src/com/vaadin/terminal/WrappedRequest.java b/src/com/vaadin/terminal/WrappedRequest.java
index 89be8a32e4..235a0513c7 100644
--- a/src/com/vaadin/terminal/WrappedRequest.java
+++ b/src/com/vaadin/terminal/WrappedRequest.java
@@ -15,7 +15,7 @@ import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import com.vaadin.Application;
-import com.vaadin.RootRequiresMoreInformation;
+import com.vaadin.RootRequiresMoreInformationException;
import com.vaadin.annotations.RootInitRequiresBrowserDetails;
import com.vaadin.terminal.gwt.server.WebBrowser;
import com.vaadin.ui.Root;
@@ -208,7 +208,7 @@ public interface WrappedRequest extends Serializable {
*
* This information is only guaranteed to be available in some special
* cases, for instance when {@link Application#getRoot} is called again
- * after throwing {@link RootRequiresMoreInformation} or in
+ * after throwing {@link RootRequiresMoreInformationException} or in
* {@link Root#init(WrappedRequest)} if the Root class is annotated with
* {@link RootInitRequiresBrowserDetails}
*
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java
index a28b9e53ec..1b558158e3 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java
@@ -44,7 +44,7 @@ import com.liferay.portal.kernel.util.PortalClassInvoker;
import com.liferay.portal.kernel.util.PropsUtil;
import com.vaadin.Application;
import com.vaadin.Application.SystemMessages;
-import com.vaadin.RootRequiresMoreInformation;
+import com.vaadin.RootRequiresMoreInformationException;
import com.vaadin.terminal.DeploymentConfiguration;
import com.vaadin.terminal.Terminal;
import com.vaadin.terminal.WrappedRequest;
@@ -606,7 +606,7 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
try {
root = application
.getRootForRequest(wrappedRequest);
- } catch (RootRequiresMoreInformation e) {
+ } catch (RootRequiresMoreInformationException e) {
// Ignore problem and continue without root
}
break;
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
index 021908ab6e..97d31df827 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
@@ -44,7 +44,7 @@ import java.util.logging.Logger;
import com.vaadin.Application;
import com.vaadin.Application.SystemMessages;
-import com.vaadin.RootRequiresMoreInformation;
+import com.vaadin.RootRequiresMoreInformationException;
import com.vaadin.external.json.JSONException;
import com.vaadin.external.json.JSONObject;
import com.vaadin.terminal.CombinedRequest;
@@ -2007,7 +2007,7 @@ public abstract class AbstractCommunicationManager implements
params.put("uidl", initialUIDL);
}
response.getWriter().write(params.toString());
- } catch (RootRequiresMoreInformation e) {
+ } catch (RootRequiresMoreInformationException e) {
// Requiring more information at this point is not allowed
// TODO handle in a better way
throw new RuntimeException(e);
diff --git a/src/com/vaadin/terminal/gwt/server/BootstrapHandler.java b/src/com/vaadin/terminal/gwt/server/BootstrapHandler.java
index cfd65aa6f7..13a4ea3e1f 100644
--- a/src/com/vaadin/terminal/gwt/server/BootstrapHandler.java
+++ b/src/com/vaadin/terminal/gwt/server/BootstrapHandler.java
@@ -13,7 +13,7 @@ import java.io.Writer;
import javax.servlet.http.HttpServletResponse;
import com.vaadin.Application;
-import com.vaadin.RootRequiresMoreInformation;
+import com.vaadin.RootRequiresMoreInformationException;
import com.vaadin.external.json.JSONException;
import com.vaadin.external.json.JSONObject;
import com.vaadin.terminal.DeploymentConfiguration;
@@ -142,7 +142,7 @@ public abstract class BootstrapHandler implements RequestHandler {
}
rootId = root.getRootId();
- } catch (RootRequiresMoreInformation e) {
+ } catch (RootRequiresMoreInformationException e) {
rootId = application.registerPendingRoot(request);
}