ui.getSession().getCommunicationManager() .handleConnectorRelatedException(connector, e);
/** * Handles the given RPC method invocation for the given connector. * * @since 7.7 * @param ui * the UI containing the connector * @param connector * the connector the RPC is targeted to * @param invocation * information about the rpc to invoke */ protected void handleInvocation(UI ui, ClientConnector connector, ServerRpcMethodInvocation invocation) { try { ServerRpcManager.applyInvocation(connector, invocation); } catch (RpcInvocationException e) { ui.getSession().getCommunicationManager() .handleConnectorRelatedException(connector, e); } }
variableName); } catch (UploadException e) { session.getCommunicationManager() .handleConnectorRelatedException(owner, e);
Class<?> context; try { context = session.getCommunicationManager().getDependencies() .get(fileName); } finally {
filename, mimeType, contentLength, owner, variableName); } catch (UploadException e) { session.getCommunicationManager() .handleConnectorRelatedException(owner, e);
public void printJSONResponse(Writer outWriter) throws IOException { if (isDirty()) { outWriter.write(", \"dd\":"); JsonPaintTarget jsonPaintTarget = new JsonPaintTarget( session.getCommunicationManager(), outWriter, false); jsonPaintTarget.startTag("dd"); jsonPaintTarget.addAttribute("visitId", lastVisitId); if (acceptCriterion != null) { jsonPaintTarget.addAttribute("accepted", lastVisitAccepted); acceptCriterion.paintResponse(jsonPaintTarget); } jsonPaintTarget.endTag("dd"); jsonPaintTarget.close(); lastVisitId = -1; lastVisitAccepted = false; acceptCriterion = null; dragEvent = null; } }
session.lock(); try { session.getCommunicationManager() .handleConnectorRelatedException(connector, e); } finally {
context.getSession().getCommunicationManager(), new FilterContext(context.getSession())); for (Dependency dependency : deps) {
LegacyCommunicationManager manager = session.getCommunicationManager(); ClientCache clientCache = manager.getClientCache(ui); boolean repaintAll = clientCache.isEmpty();
@Override public boolean synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) throws IOException { try { assert UI.getCurrent() == null; // Update browser information from the request session.getBrowser().updateRequestDetails(request); UI uI = getBrowserDetailsUI(request, session); session.getCommunicationManager().repaintAll(uI); JsonObject params = Json.createObject(); params.put(UIConstants.UI_ID_PARAMETER, uI.getUIId()); String initialUIDL = getInitialUidl(request, uI); params.put("uidl", initialUIDL); return commitJsonResponse(request, response, JsonUtil.stringify(params)); } catch (JsonException e) { throw new IOException("Error producing initial UIDL", e); } }
ui.getSession().getCommunicationManager().repaintAll(ui); ui.getSession().getCommunicationManager().repaintAll(ui);
ui.getSession().getCommunicationManager() .handleConnectorRelatedException(ui, initException);
session.lock(); try { session.getCommunicationManager() .handleConnectorRelatedException(connector, e); } finally {