Package com.vaadin.server
Class LegacyCommunicationManager
- java.lang.Object
-
- com.vaadin.server.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 versionThis 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 iscom.vaadin.client.ApplicationConnection.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classLegacyCommunicationManager.ClientCacheDeprecated.As of 7.1.static classLegacyCommunicationManager.InvalidUIDLSecurityKeyExceptionDeprecated.As of 7.1.
-
Constructor Summary
Constructors Constructor Description LegacyCommunicationManager(VaadinSession session)Deprecated.TODO New constructor - document me!
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static elemental.json.JsonObjectencodeState(ClientConnector connector, SharedState state)Deprecated.As of 7.1.LegacyCommunicationManager.ClientCachegetClientCache(UI uI)Deprecated.As of 7.1.ClientConnectorgetConnector(UI uI, String connectorId)Deprecated.As of 7.1.Map<String,Class<?>>getDependencies()Deprecated.As of 7.1.protected VaadinSessiongetSession()Deprecated.StringgetStreamVariableTargetUrl(ClientConnector owner, String name, StreamVariable value)Deprecated.As of 7.1.StringgetTagForType(Class<? extends ClientConnector> class1)Deprecated.As of 7.1.voidhandleConnectorRelatedException(ClientConnector connector, Throwable throwable)Deprecated.As of 7.1.static booleanisComponentVisibleToClient(Component child)Deprecated.As of 7.1.static booleanisConnectorVisibleToClient(ClientConnector connector)Deprecated.As of 7.1.StringregisterDependency(String resourceUri, Class<?> context)Deprecated.As of 7.1.voidrepaintAll(UI ui)Deprecated.
-
-
-
Constructor Detail
-
LegacyCommunicationManager
public LegacyCommunicationManager(VaadinSession session)
Deprecated.TODO New constructor - document me!- Parameters:
session-
-
-
Method Detail
-
getSession
protected VaadinSession getSession()
Deprecated.
-
encodeState
@Deprecated public static elemental.json.JsonObject encodeState(ClientConnector connector, SharedState state)
Deprecated.As of 7.1. See #11411.
-
registerDependency
@Deprecated public String registerDependency(String resourceUri, Class<?> context)
Deprecated.As of 7.1. See #11413.Resolves a dependency URI, registering the URI with thisLegacyCommunicationManagerif needed and returns a fully qualified URI.
-
getDependencies
@Deprecated public Map<String,Class<?>> getDependencies()
Deprecated.As of 7.1. See #11413.
-
getClientCache
@Deprecated public LegacyCommunicationManager.ClientCache getClientCache(UI uI)
Deprecated.As of 7.1. See #11410.
-
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:
trueif the connector is visible to the client,falseotherwise
-
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
-
getConnector
@Deprecated public ClientConnector getConnector(UI uI, String connectorId)
Deprecated.As of 7.1. In 7.2 and later, useuI.getConnectorTracker().getConnector(connectorId)instead. See ticket #11411.
-
getTagForType
@Deprecated public String getTagForType(Class<? extends ClientConnector> class1)
Deprecated.As of 7.1. Will be removed in the future.
-
getStreamVariableTargetUrl
@Deprecated public String getStreamVariableTargetUrl(ClientConnector owner, String name, StreamVariable value)
Deprecated.As of 7.1. See #11411.
-
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 handleconnector- 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)
-
-