com.vaadin.terminal.gwt.server
Class CommunicationManager

java.lang.Object
  extended by com.vaadin.terminal.gwt.server.AbstractCommunicationManager
      extended by com.vaadin.terminal.gwt.server.CommunicationManager
All Implemented Interfaces:
Serializable

public class CommunicationManager
extends AbstractCommunicationManager

Application manager processes changes and paints for single application instance. This class handles applications running as servlets.

Since:
5.0
Version:
7.0.0.alpha3
Author:
Vaadin Ltd.
See Also:
AbstractCommunicationManager, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.terminal.gwt.server.AbstractCommunicationManager
AbstractCommunicationManager.Callback, AbstractCommunicationManager.ErrorHandlerErrorEvent, AbstractCommunicationManager.InvalidUIDLSecurityKeyException, AbstractCommunicationManager.SimpleMultiPartInputStream
 
Field Summary
 
Fields inherited from class com.vaadin.terminal.gwt.server.AbstractCommunicationManager
VAR_BURST_SEPARATOR, VAR_ESCAPE_CHARACTER
 
Constructor Summary
CommunicationManager(Application application)
          TODO New constructor - document me!
CommunicationManager(Application application, AbstractApplicationServlet applicationServlet)
          Deprecated. use CommunicationManager(Application) instead
 
Method Summary
protected  void cleanStreamVariable(ClientConnector owner, String name)
           
protected  BootstrapHandler createBootstrapHandler()
           
protected  InputStream getThemeResourceAsStream(Root root, String themeName, String resource)
           
 void handleFileUpload(Application application, WrappedRequest request, WrappedResponse response)
          Handles file upload request submitted via Upload component.
protected  void postPaint(Root root)
          Method called after the paint phase while still being synchronized on the application
 
Methods inherited from class com.vaadin.terminal.gwt.server.AbstractCommunicationManager
changeVariables, closeJsonMessage, doHandleSimpleMultipartFileUpload, doHandleXhrFilePost, getApplication, getConnector, getInitialUIDL, getRequestPayload, getSecurityKey, getSecurityKeyUIDL, handleApplicationRequest, handleBrowserDetailsRequest, handleBurst, handleUidlRequest, highlightConnector, isXSRFEnabled, openJsonMessage, printHighlightedComponentHierarchy, requireLocale, sendUploadResponse, serveConnectorResource, streamToReceiver, unescapeBurst, writeUidlResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommunicationManager

@Deprecated
public CommunicationManager(Application application,
                                       AbstractApplicationServlet applicationServlet)
Deprecated. use CommunicationManager(Application) instead

Parameters:
application -
applicationServlet -

CommunicationManager

public CommunicationManager(Application application)
TODO New constructor - document me!

Parameters:
application -
Method Detail

handleFileUpload

public void handleFileUpload(Application application,
                             WrappedRequest request,
                             WrappedResponse response)
                      throws IOException,
                             AbstractCommunicationManager.InvalidUIDLSecurityKeyException
Handles file upload request submitted via Upload component.

Parameters:
root - The root for this request
request -
response -
Throws:
IOException
InvalidUIDLSecurityKeyException
AbstractCommunicationManager.InvalidUIDLSecurityKeyException
See Also:
#getStreamVariableTargetUrl(ReceiverOwner, String, StreamVariable)

postPaint

protected void postPaint(Root root)
Description copied from class: AbstractCommunicationManager
Method called after the paint phase while still being synchronized on the application

Overrides:
postPaint in class AbstractCommunicationManager

cleanStreamVariable

protected void cleanStreamVariable(ClientConnector owner,
                                   String name)
Specified by:
cleanStreamVariable in class AbstractCommunicationManager

createBootstrapHandler

protected BootstrapHandler createBootstrapHandler()
Specified by:
createBootstrapHandler in class AbstractCommunicationManager

getThemeResourceAsStream

protected InputStream getThemeResourceAsStream(Root root,
                                               String themeName,
                                               String resource)
Specified by:
getThemeResourceAsStream in class AbstractCommunicationManager


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