141142143144145146147148149150151
finishSend(resource.getResponse()); } catch (IOException ex) { logger.trace("", ex); } resource.resume(); } throw new SocketIOException(e); } if (!isStreamingConnection) { try {
151152153154155156157158159160161
try { finishSend(resource.getResponse()); } catch (IOException e) { logger.trace("", e); } resource.resume(); } else { logger.trace("calling from " + this.getClass().getName() + " : " + "sendMessage"); session.startHeartbeatTimer(); } } else {
220221222223224225226227228229230
startSend(response); writeData(response, data.toString()); finishSend(response); // force a resume, because we sent data resource.resume(); resume = true; } }
277278279280281282283284285286287
} } } } // force a resume on a POST request resource.resume(); } } else { response.sendError(AtmosphereResponse.SC_BAD_REQUEST); } return Action.CANCELLED;
253254255256257258259260261262263
super.onStateChange(event); } } if (resumeOnBroadcast && r.isSuspended()) { r.resume(); } } public boolean pathParams() { return pathParams;
181182183184185186187188189190191
resumeOnBroadcast = Boolean.class.cast(o); } } if (resumeOnBroadcast != null && resumeOnBroadcast) { r.resume(); } } @Override public void destroy() {
230231232233234235236237238239240
} super.onStateChange(event); } if (resumeOnBroadcast && r.isSuspended()) { r.resume(); } } @Override public boolean pathParams() {
251252253254255256257258259260261
} else { super.onStateChange(event); } if (resumeOnBroadcast && r.isSuspended()) { r.resume(); } } public boolean pathParams(){ return pathParams;