com.vaadin.server
Class LegacyCommunicationManager

java.lang.Object
  extended by com.vaadin.server.LegacyCommunicationManager
All Implemented Interfaces:
java.io.Serializable

Deprecated. As of 7.0. Will likely change or be removed in a future version

@Deprecated
public class LegacyCommunicationManager
extends java.lang.Object
implements java.io.Serializable

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 com.vaadin.client.ApplicationConnection.

TODO Document better!

See Also:
Serialized Form

Nested Class Summary
 class LegacyCommunicationManager.ClientCache
          Deprecated. As of 7.1. See #11410.
static class LegacyCommunicationManager.InvalidUIDLSecurityKeyException
          Deprecated. As of 7.1. Will be removed in the future.
 
Constructor Summary
LegacyCommunicationManager(VaadinSession session)
          Deprecated. TODO New constructor - document me!
 
Method Summary
static elemental.json.JsonObject encodeState(ClientConnector connector, com.vaadin.shared.communication.SharedState state)
          Deprecated. As of 7.1. See #11411.
 LegacyCommunicationManager.ClientCache getClientCache(UI uI)
          Deprecated. As of 7.1. See #11410.
 ClientConnector getConnector(UI uI, java.lang.String connectorId)
          Deprecated. As of 7.1. In 7.2 and later, use uI.getConnectorTracker().getConnector(connectorId) instead. See ticket #11411.
 java.util.Map<java.lang.String,java.lang.Class<?>> getDependencies()
          Deprecated. As of 7.1. See #11413.
protected  VaadinSession getSession()
          Deprecated.  
 java.lang.String getStreamVariableTargetUrl(ClientConnector owner, java.lang.String name, StreamVariable value)
          Deprecated. As of 7.1. See #11411.
 java.lang.String getTagForType(java.lang.Class<? extends ClientConnector> class1)
          Deprecated. As of 7.1. Will be removed in the future.
 java.lang.String getTheme(UI uI)
          Deprecated. As of 7.1. See #11412.
 void handleConnectorRelatedException(ClientConnector connector, java.lang.Throwable throwable)
          Deprecated. As of 7.1. See #11411.
static boolean isComponentVisibleToClient(Component child)
          Deprecated. As of 7.1. See #11411.
static boolean isConnectorVisibleToClient(ClientConnector connector)
          Deprecated. As of 7.1. See #11411.
 java.lang.String registerDependency(java.lang.String resourceUri, java.lang.Class<?> context)
          Deprecated. As of 7.1. See #11413.
 void repaintAll(UI ui)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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,
                                                               com.vaadin.shared.communication.SharedState state)
Deprecated. As of 7.1. See #11411.


registerDependency

@Deprecated
public java.lang.String registerDependency(java.lang.String resourceUri,
                                                      java.lang.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.


getDependencies

@Deprecated
public java.util.Map<java.lang.String,java.lang.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 java.lang.String getTheme(UI uI)
Deprecated. As of 7.1. See #11412.


getConnector

@Deprecated
public ClientConnector getConnector(UI uI,
                                               java.lang.String connectorId)
Deprecated. As of 7.1. In 7.2 and later, use uI.getConnectorTracker().getConnector(connectorId) instead. See ticket #11411.


getTagForType

@Deprecated
public java.lang.String getTagForType(java.lang.Class<? extends ClientConnector> class1)
Deprecated. As of 7.1. Will be removed in the future.


getStreamVariableTargetUrl

@Deprecated
public java.lang.String getStreamVariableTargetUrl(ClientConnector owner,
                                                              java.lang.String name,
                                                              StreamVariable value)
Deprecated. As of 7.1. See #11411.


handleConnectorRelatedException

@Deprecated
public void handleConnectorRelatedException(ClientConnector connector,
                                                       java.lang.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


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.