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:
Paintable.RepaintRequestListener, 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:
6.3.3
Author:
IT Mill 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.Request, AbstractCommunicationManager.Response, AbstractCommunicationManager.Session, AbstractCommunicationManager.URIHandlerErrorImpl
 
Field Summary
 
Fields inherited from class com.vaadin.terminal.gwt.server.AbstractCommunicationManager
VAR_ARRAYITEM_SEPARATOR, VAR_BURST_SEPARATOR
 
Constructor Summary
CommunicationManager(Application application)
          TODO New constructor - document me!
CommunicationManager(Application application, AbstractApplicationServlet applicationServlet)
          Deprecated. use CommunicationManager(Application) instead
 
Method Summary
protected  com.vaadin.external.org.apache.commons.fileupload.FileUpload createFileUpload()
          Create an upload handler that is appropriate to the context in which the application is being run (servlet or portlet).
protected  com.vaadin.external.org.apache.commons.fileupload.FileItemIterator getUploadItemIterator(com.vaadin.external.org.apache.commons.fileupload.FileUpload upload, AbstractCommunicationManager.Request request)
          TODO New method - document me!
 void handleFileUpload(HttpServletRequest request, HttpServletResponse response)
          Handles file upload request submitted via Upload component.
 void handleUidlRequest(HttpServletRequest request, HttpServletResponse response, AbstractApplicationServlet applicationServlet, Window window)
          Handles UIDL request TODO document
 
Methods inherited from class com.vaadin.terminal.gwt.server.AbstractCommunicationManager
doGetApplicationWindow, doHandleFileUpload, doHandleUidlRequest, getPaintableId, handleURI, hasPaintableId, repaintRequested, requireLocale, sendUploadResponse
 
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

createFileUpload

protected com.vaadin.external.org.apache.commons.fileupload.FileUpload createFileUpload()
Description copied from class: AbstractCommunicationManager
Create an upload handler that is appropriate to the context in which the application is being run (servlet or portlet).

Specified by:
createFileUpload in class AbstractCommunicationManager
Returns:
new FileUpload instance

getUploadItemIterator

protected com.vaadin.external.org.apache.commons.fileupload.FileItemIterator getUploadItemIterator(com.vaadin.external.org.apache.commons.fileupload.FileUpload upload,
                                                                                                   AbstractCommunicationManager.Request request)
                                                                                            throws IOException,
                                                                                                   com.vaadin.external.org.apache.commons.fileupload.FileUploadException
Description copied from class: AbstractCommunicationManager
TODO New method - document me!

Specified by:
getUploadItemIterator in class AbstractCommunicationManager
Returns:
Throws:
IOException
com.vaadin.external.org.apache.commons.fileupload.FileUploadException

handleFileUpload

public void handleFileUpload(HttpServletRequest request,
                             HttpServletResponse response)
                      throws IOException,
                             com.vaadin.external.org.apache.commons.fileupload.FileUploadException
Handles file upload request submitted via Upload component. TODO document

Parameters:
request -
response -
Throws:
IOException
com.vaadin.external.org.apache.commons.fileupload.FileUploadException

handleUidlRequest

public void handleUidlRequest(HttpServletRequest request,
                              HttpServletResponse response,
                              AbstractApplicationServlet applicationServlet,
                              Window window)
                       throws IOException,
                              ServletException,
                              AbstractCommunicationManager.InvalidUIDLSecurityKeyException
Handles UIDL request TODO document

Parameters:
request -
response -
applicationServlet -
window - target window of the UIDL request, can be null if window not found
Throws:
IOException
ServletException
AbstractCommunicationManager.InvalidUIDLSecurityKeyException


Copyright © 2000-2010 IT Mill Ltd. All Rights Reserved.