ChunkedMessage chunkedResponseMsg = serverConnection.getChunkedResponseMessage(); chunkedResponseMsg.setServerConnection(serverConnection); if (originalResponse.headerHasBeenSent()) { chunkedResponseMsg.setNumberOfParts(numOfParts); chunkedResponseMsg.setLastChunkAndNumParts(true, numOfParts);
protected static void writeFunctionResponseError(Message origMsg, int messageType, String message, ServerConnection servConn) throws IOException { ChunkedMessage functionResponseMsg = servConn.getFunctionResponseMessage(); ChunkedMessage chunkedResponseMsg = servConn.getChunkedResponseMessage(); if (functionResponseMsg.headerHasBeenSent()) { functionResponseMsg.setNumberOfParts(1); functionResponseMsg.setLastChunk(true); functionResponseMsg.addStringPart(message); if (logger.isDebugEnabled()) { logger.debug("{}: Sending Error chunk while reply in progress: {}", servConn.getName(), message); } functionResponseMsg.sendChunk(servConn); } else { chunkedResponseMsg.setMessageType(messageType); chunkedResponseMsg.setNumberOfParts(1); chunkedResponseMsg.setLastChunk(true); chunkedResponseMsg.setTransactionId(origMsg.getTransactionId()); chunkedResponseMsg.sendHeader(); chunkedResponseMsg.addStringPart(message); if (logger.isDebugEnabled()) { logger.debug("{}: Sending Error chunk: {}", servConn.getName(), message); } chunkedResponseMsg.sendChunk(servConn); } }
ChunkedMessage queryResponseMsg = serverConnection.getQueryResponseMessage(); ChunkedMessage chunkedResponseMsg = serverConnection.getChunkedResponseMessage(); if (queryResponseMsg.headerHasBeenSent()) {
ChunkedMessage functionResponseMsg = serverConnection.getFunctionResponseMessage(); ChunkedMessage chunkedResponseMsg = serverConnection.getChunkedResponseMessage(); if (functionResponseMsg.headerHasBeenSent()) { functionResponseMsg.setServerConnection(serverConnection); functionResponseMsg.setNumberOfParts(2);
ChunkedMessage chunkedResponseMsg = serverConnection.getChunkedResponseMessage(); int numParts = 0; if (functionResponseMsg.headerHasBeenSent()) { if (e instanceof FunctionException && e.getCause() instanceof InternalFunctionInvocationTargetException) {
ChunkedMessage chunkedResponseMsg = serverConnection.getChunkedResponseMessage(); int numParts = 0; if (functionResponseMsg.headerHasBeenSent()) { if (e instanceof FunctionException && e.getCause() instanceof InternalFunctionInvocationTargetException) {
ChunkedMessage chunkedResponseMsg = serverConnection.getChunkedResponseMessage(); int numParts = 0; if (functionResponseMsg.headerHasBeenSent()) { if (e instanceof FunctionException && e.getCause() instanceof InternalFunctionInvocationTargetException) {