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 isApplicationConnection
.TODO Document better!
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
LegacyCommunicationManager.ClientCache
Deprecated.As of 7.1.static class
LegacyCommunicationManager.InvalidUIDLSecurityKeyException
Deprecated.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 JsonObject
encodeState(ClientConnector connector, SharedState state)
Deprecated.As of 7.1.LegacyCommunicationManager.ClientCache
getClientCache(UI uI)
Deprecated.As of 7.1.ClientConnector
getConnector(UI uI, String connectorId)
Deprecated.As of 7.1.Map<String,Class<?>>
getDependencies()
Deprecated.As of 7.1.protected VaadinSession
getSession()
Deprecated.String
getStreamVariableTargetUrl(ClientConnector owner, String name, StreamVariable value)
Deprecated.As of 7.1.String
getTagForType(Class<? extends ClientConnector> class1)
Deprecated.As of 7.1.String
getTheme(UI uI)
Deprecated.As of 7.1.void
handleConnectorRelatedException(ClientConnector connector, Throwable throwable)
Deprecated.As of 7.1.static boolean
isComponentVisibleToClient(Component child)
Deprecated.As of 7.1.static boolean
isConnectorVisibleToClient(ClientConnector connector)
Deprecated.As of 7.1.String
registerDependency(String resourceUri, Class<?> context)
Deprecated.As of 7.1.void
repaintAll(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 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 thisLegacyCommunicationManager
if 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:
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
-
getTheme
@Deprecated public String getTheme(UI uI)
Deprecated.As of 7.1. See #11412.
-
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)
-
-