Class LegacyCommunicationManager

  • All Implemented Interfaces:
    Serializable

    @Deprecated
    public class LegacyCommunicationManager
    extends Object
    implements Serializable
    Deprecated.
    As of 7.0. Will likely change or be removed in a future version
    This is a common base class for the server-side implementations of the communication system between the client code (compiled with GWT into JavaScript) and the server side components. Its client side counterpart is ApplicationConnection.

    TODO Document better!

    See Also:
    Serialized Form
    • Constructor Detail

      • LegacyCommunicationManager

        public LegacyCommunicationManager​(VaadinSession session)
        Deprecated.
        TODO New constructor - document me!
        Parameters:
        session -
    • Method Detail

      • registerDependency

        @Deprecated
        public String registerDependency​(String resourceUri,
                                         Class<?> context)
        Deprecated.
        As of 7.1. See #11413.
        Resolves a dependency URI, registering the URI with this LegacyCommunicationManager if needed and returns a fully qualified URI.
      • isConnectorVisibleToClient

        @Deprecated
        public static boolean isConnectorVisibleToClient​(ClientConnector connector)
        Deprecated.
        As of 7.1. See #11411.
        Checks if the connector is visible in context. For Components, isComponentVisibleToClient(Component) is used. For other types of connectors, the contextual visibility of its first Component ancestor is used. If no Component ancestor is found, the connector is not visible.
        Parameters:
        connector - The connector to check
        Returns:
        true if the connector is visible to the client, false otherwise
      • isComponentVisibleToClient

        @Deprecated
        public static boolean isComponentVisibleToClient​(Component child)
        Deprecated.
        As of 7.1. See #11411.
        Checks if the component should be visible to the client. Returns false if the child should not be sent to the client, true otherwise.
        Parameters:
        child - The child to check
        Returns:
        true if the child is visible to the client, false otherwise
      • handleConnectorRelatedException

        @Deprecated
        public void handleConnectorRelatedException​(ClientConnector connector,
                                                    Throwable throwable)
        Deprecated.
        As of 7.1. See #11411.
        Handles an exception related to a connector by invoking the appropriate error handler.
        Parameters:
        throwable - the exception to handle
        connector - the connector that the exception is related to
      • repaintAll

        @Deprecated
        public void repaintAll​(UI ui)
        Deprecated.
        Requests that the given UI should be fully re-rendered on the client side.
        Since:
        7.1 @deprecated. As of 7.1. Should be refactored once locales are fixed (#11378)