private void writeOut(MessageContext msgContext, Socket socket, String contentType) throws IOException { MessageFormatter messageFormatter = MessageProcessorSelector.getMessageFormatter(msgContext); OMOutputFormat format = BaseUtils.getOMOutputFormat(msgContext); format.setContentType(contentType); byte[] payload = messageFormatter.getBytes(msgContext, format); OutputStream out = socket.getOutputStream(); out.write(payload); out.flush(); }
private void writeOut(MessageContext msgContext, Socket socket, String contentType) throws IOException { MessageFormatter messageFormatter = MessageProcessorSelector.getMessageFormatter(msgContext); OMOutputFormat format = BaseUtils.getOMOutputFormat(msgContext); format.setContentType(contentType); OutputStream out = socket.getOutputStream(); messageFormatter.writeTo(msgContext, format, out, false); out.flush(); }
format.setContentType(udpOutInfo.getContentType()); ByteArrayOutputStream out = new ByteArrayOutputStream(); messageFormatter.writeTo(msgContext, format, out, false);
format.setContentType(udpOutInfo.getContentType()); byte[] payload = messageFormatter.getBytes(msgContext, format); try {
format.setContentType(udpOutInfo.getContentType()); byte[] payload = messageFormatter.getBytes(msgContext, format); try {