@Override public FlushableDataOutput writeMessage(final ManagementProtocolHeader header) throws IOException { final MessageOutputStream os = channel.writeMessage(); return AbstractMessageHandler.writeHeader(header, os); }
@Override public FlushableDataOutput writeMessage(final ManagementProtocolHeader header) throws IOException { final MessageOutputStream os = channel.writeMessage(); return writeHeader(header, os); } });
@Override public FlushableDataOutput writeMessage(final ManagementProtocolHeader header) throws IOException { final MessageOutputStream os = channel.writeMessage(); return writeHeader(header, os); }
@Override public FlushableDataOutput writeMessage(final ManagementProtocolHeader header) throws IOException { final MessageOutputStream os = channel.writeMessage(); return AbstractMessageHandler.writeHeader(header, os); }
/** * Write an error response. * * @param channel the channel * @param header the request * @param error the error * @throws IOException */ protected static void writeErrorResponse(final Channel channel, final ManagementRequestHeader header, final Exception error) throws IOException { final ManagementResponseHeader response = ManagementResponseHeader.create(header, error); final MessageOutputStream output = channel.writeMessage(); try { writeHeader(response, output); output.close(); } finally { StreamUtils.safeClose(output); } }
/** * Write an error response. * * @param channel the channel * @param header the request * @param error the error * @throws IOException */ protected static void writeErrorResponse(final Channel channel, final ManagementRequestHeader header, final Throwable error) throws IOException { final ManagementResponseHeader response = ManagementResponseHeader.create(header, error); final MessageOutputStream output = channel.writeMessage(); try { writeHeader(response, output); output.close(); } finally { StreamUtils.safeClose(output); } }
/** * Write an error response. * * @param channel the channel * @param header the request * @param error the error * @throws IOException */ protected static void writeErrorResponse(final Channel channel, final ManagementRequestHeader header, final Throwable error) throws IOException { final ManagementResponseHeader response = ManagementResponseHeader.create(header, error); final MessageOutputStream output = channel.writeMessage(); try { writeHeader(response, output); output.close(); } finally { StreamUtils.safeClose(output); } }