Class ServerGwtBridge

java.lang.Object
com.google.gwt.core.shared.GWTBridge
com.google.gwt.core.server.ServerGwtBridge

public class ServerGwtBridge extends GWTBridge
Implements GWT.* methods for the server.
  • Constructor Details

    • ServerGwtBridge

      ServerGwtBridge()
  • Method Details

    • getInstance

      public static ServerGwtBridge getInstance()
      Get the singleton ServerGwtBridge instance, creating it if necessary. The instance will be registered via GWT.setBridge(GWTBridge) and will have the default instantiators registered on it.
      Returns:
      the singleton ServerGwtBridge instance
    • getLocale

      public static GwtLocale getLocale(ServerGwtBridge.Properties properties)
    • create

      public <T> T create(Class<?> classLiteral)
      Specified by:
      create in class GWTBridge
    • getProperty

      public String getProperty(String property)
      Get the value of the named property, preferring a value specific to this thread (see setThreadProperty(String, String)) over one that is set globally (see setGlobalProperty(String, String)).
      Parameters:
      property -
      Returns:
      the property's value or null if none
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in class GWTBridge
    • isClient

      public boolean isClient()
      Specified by:
      isClient in class GWTBridge
    • log

      public void log(String message, Throwable e)
      Specified by:
      log in class GWTBridge
    • register

      public void register(Class<?> baseClass, ServerGwtBridge.ClassInstantiator instantiator)
      Register an instantiator to be used for any subtypes of a given base class.
      Parameters:
      baseClass -
      instantiator -
    • setGlobalProperty

      public void setGlobalProperty(String property, String value)
      Set a property value globally. This value will be overridden by any thread-specific property value of the same name.
      Parameters:
      property -
      value -
    • setThreadProperty

      public void setThreadProperty(String property, String value)
      Set a property value for only the current thread. This value will override any global property value of the same name.
      Parameters:
      property -
      value -