com.vaadin.terminal.gwt.server
Class PortletCommunicationManager
java.lang.Object
com.vaadin.terminal.gwt.server.AbstractCommunicationManager
com.vaadin.terminal.gwt.server.PortletCommunicationManager
- All Implemented Interfaces:
- Serializable
public class PortletCommunicationManager
- extends AbstractCommunicationManager
TODO document me!
- Author:
- peholmst
- See Also:
- Serialized Form
Method Summary |
protected void |
cleanStreamVariable(ClientConnector owner,
String name)
|
protected BootstrapHandler |
createBootstrapHandler()
|
protected InputStream |
getThemeResourceAsStream(Root root,
String themeName,
String resource)
|
protected boolean |
handleApplicationRequest(WrappedRequest request,
WrappedResponse response)
|
void |
handleBrowserDetailsRequest(WrappedRequest request,
WrappedResponse response,
Application application)
|
void |
handleFileUpload(Application application,
WrappedRequest request,
WrappedResponse response)
|
void |
handleUidlRequest(WrappedRequest request,
WrappedResponse response,
AbstractCommunicationManager.Callback callback,
Root root)
Internally process a UIDL request from the client. |
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, handleBurst, 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 |
PortletCommunicationManager
public PortletCommunicationManager(Application application)
handleFileUpload
public void handleFileUpload(Application application,
WrappedRequest request,
WrappedResponse response)
throws IOException
- Throws:
IOException
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
handleApplicationRequest
protected boolean handleApplicationRequest(WrappedRequest request,
WrappedResponse response)
throws IOException
- Overrides:
handleApplicationRequest
in class AbstractCommunicationManager
- Throws:
IOException
handleUidlRequest
public void handleUidlRequest(WrappedRequest request,
WrappedResponse response,
AbstractCommunicationManager.Callback callback,
Root root)
throws IOException,
AbstractCommunicationManager.InvalidUIDLSecurityKeyException,
JSONException
- Description copied from class:
AbstractCommunicationManager
- Internally process a UIDL request from the client.
This method calls
AbstractCommunicationManager.handleVariables(WrappedRequest, WrappedResponse, Callback, Application, Root)
to process any changes to variables by the client and then repaints
affected components using #paintAfterVariableChanges()
.
Also, some cleanup is done when a request arrives for an application that
has already been closed.
The method handleUidlRequest(...) in subclasses should call this method.
TODO better documentation
- Overrides:
handleUidlRequest
in class AbstractCommunicationManager
root
- target window for the UIDL request, can be null if target not
found
- Throws:
IOException
AbstractCommunicationManager.InvalidUIDLSecurityKeyException
JSONException
handleBrowserDetailsRequest
public void handleBrowserDetailsRequest(WrappedRequest request,
WrappedResponse response,
Application application)
throws IOException
- Overrides:
handleBrowserDetailsRequest
in class AbstractCommunicationManager
- Throws:
IOException
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.