com.vaadin.terminal.gwt.server.
Class CommunicationManager
java.lang.Object
com.vaadin.terminal.gwt.server.AbstractCommunicationManager
com.vaadin.terminal.gwt.server.CommunicationManager
All Implemented Interfaces:
- extends AbstractCommunicationManager
public class CommunicationManager
Application manager processes changes and paints for single application instance. This class handles applications running as servlets.
Since:
5.0
Version:
6.8.18
Author:
Vaadin Ltd.
See Also:
Nested Class Summary |
---|
Field Summary |
---|
Fields inherited from class com.vaadin.terminal.gwt.server.AbstractCommunicationManager |
---|
VAR_ARRAYITEM_SEPARATOR, 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 | |
---|---|
void |
cleanStreamVariable(VariableOwner owner,
String name)
|
StreamVariable |
getStreamVariable(String paintableId,
String variableName)
Gets a stream variable based on paintable id and variable name. |
String |
getStreamVariableTargetUrl(VariableOwner owner,
String name,
StreamVariable value)
|
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 |
protected void |
unregisterPaintable(Component p)
Called when communication manager stops listening for repaints for given component. |
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)
- Parameters:
application
-applicationServlet
-
Deprecated. use CommunicationManager(Application)
instead
CommunicationManager
public CommunicationManager(Application application)
- Parameters:
application
-
TODO New constructor - document me!
Method Detail |
---|
handleFileUpload
public void handleFileUpload(HttpServletRequest request,
HttpServletResponse response)
throws IOException,
AbstractCommunicationManager.InvalidUIDLSecurityKeyException
- Parameters:
request
-response
-- Throws:
IOException
InvalidUIDLSecurityKeyException
AbstractCommunicationManager.InvalidUIDLSecurityKeyException
- See Also:
#getStreamVariableTargetUrl(ReceiverOwner, String, StreamVariable)
Handles file upload request submitted via Upload component.
getStreamVariable
public StreamVariable getStreamVariable(String paintableId,
String variableName)
- Parameters:
paintableId
- id of paintable to get variable forvariableName
- name of the stream variable- Returns:
- the corresponding stream variable, or
null
if not found
Gets a stream variable based on paintable id and variable name. Returns
null
if no matching variable has been registered.
handleUidlRequest
public void handleUidlRequest(HttpServletRequest request,
HttpServletResponse response,
AbstractApplicationServlet applicationServlet,
Window window)
throws IOException,
ServletException,
AbstractCommunicationManager.InvalidUIDLSecurityKeyException
- Parameters:
request
-response
-applicationServlet
-window
- target window of the UIDL request, can be null if window not found- Throws:
IOException
ServletException
AbstractCommunicationManager.InvalidUIDLSecurityKeyException
Handles UIDL request TODO document
unregisterPaintable
protected void unregisterPaintable(Component p)
- Overrides:
unregisterPaintable
in classAbstractCommunicationManager
Description copied from class: AbstractCommunicationManager
Called when communication manager stops listening for repaints for given component.
getStreamVariableTargetUrl
public String getStreamVariableTargetUrl(VariableOwner owner,
String name,
StreamVariable value)
cleanStreamVariable
public void cleanStreamVariable(VariableOwner owner,
String name)
- Specified by:
cleanStreamVariable
in classAbstractCommunicationManager