return this.getConfig("versionInfo").vaadinVersion;
}-*/;
- /**
- * Gets the version of the application running on the server.
- *
- * @return a string with the application version
- *
- * @see com.vaadin.Application#getVersion()
- */
- private native String getApplicationVersion()
- /*-{
- return this.getConfig("versionInfo").applicationVersion;
- }-*/;
-
private native String getUIDL()
/*-{
return this.getConfig("uidl");
return getJsoConfiguration(id).getVaadinVersion();
}
- public String getApplicationVersion() {
- return getJsoConfiguration(id).getApplicationVersion();
- }
-
public Class<? extends ServerConnector> getConnectorClassByEncodedTag(
int tag) {
Class<? extends ServerConnector> type = classes.get(tag);
import com.vaadin.server.DeploymentConfiguration;
import com.vaadin.server.GlobalResourceHandler;
import com.vaadin.server.RequestHandler;
+import com.vaadin.server.ServletApplicationContext;
import com.vaadin.server.Terminal;
import com.vaadin.server.UIProvider;
import com.vaadin.server.VariableOwner;
-import com.vaadin.server.ServletApplicationContext;
import com.vaadin.server.WrappedRequest;
import com.vaadin.server.WrappedRequest.BrowserDetails;
import com.vaadin.server.WrappedResponse;
* </p>
* <p>
* By default, when you are deploying your application to a servlet
- * container, the implementation class is {@link ServletApplicationContext} -
- * you can safely cast to this class and use the methods from there. When
+ * container, the implementation class is {@link ServletApplicationContext}
+ * - you can safely cast to this class and use the methods from there. When
* you are deploying your application as a portlet, context implementation
* is {@link PortletApplicationContext}.
* </p>
return context;
}
- /**
- * Override this method to return correct version number of your
- * Application. Version information is delivered for example to Testing
- * Tools test results. By default this returns a string "NONVERSIONED".
- *
- * @return version string
- */
- public String getVersion() {
- return "NONVERSIONED";
- }
-
/**
* Gets the application error handler.
*
JSONObject versionInfo = new JSONObject();
versionInfo.put("vaadinVersion", Version.getFullVersion());
- versionInfo.put("applicationVersion", application.getVersion());
appConfig.put("versionInfo", versionInfo);
appConfig.put("widgetset", context.getWidgetsetName());