| java.lang.Object com.google.gwt.dev.shell.CheckForUpdates
All known Subclasses: com.google.gwt.dev.shell.mac.CheckForUpdatesSaf, com.google.gwt.dev.shell.ie.CheckForUpdatesIE6, com.google.gwt.dev.shell.moz.CheckForUpdatesMoz,
CheckForUpdates | abstract public class CheckForUpdates (Code) | | Orchestrates a best-effort attempt to find out if a new version of GWT is
available.
|
Inner Class :public static interface UpdateAvailableCallback | |
Method Summary | |
public void | check(UpdateAvailableCallback callback) | abstract protected byte[] | doHttpGet(String userAgent, String url) | protected byte[] | httpGetNonNative(String userAgent, String url) This default implementation uses regular Java HTTP, which doesn't deal with
proxies automagically. | protected static boolean | isServerVersionNewer(String clientVersion, String serverVersion) Determines whether the server version is definitively newer than the client
version. |
LAST_SERVER_VERSION | final protected static String LAST_SERVER_VERSION(Code) | | |
check | public void check(UpdateAvailableCallback callback)(Code) | | |
httpGetNonNative | protected byte[] httpGetNonNative(String userAgent, String url)(Code) | | This default implementation uses regular Java HTTP, which doesn't deal with
proxies automagically. See the IE6 subclasses for an implementation that
does deal with proxies.
|
isServerVersionNewer | protected static boolean isServerVersionNewer(String clientVersion, String serverVersion)(Code) | | Determines whether the server version is definitively newer than the client
version. If any errors occur in the comparison, this method returns false
to avoid unwanted erroneous notifications.
Parameters: clientVersion - The current client version Parameters: serverVersion - The current server version true if the server is definitely newer, otherwise false |
|
|