1 /* 2 * $Id: StreamingService.java 7963 2007-08-21 08:53:15Z dirk.olmes $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com 5 * 6 * The software in this package is published under the terms of the CPAL v1.0 7 * license, a copy of which has been included with this distribution in the 8 * LICENSE.txt file. 9 */ 10 package org.mule.impl.model.streaming; 11 12 import org.mule.umo.UMOEventContext; 13 14 import java.io.InputStream; 15 import java.io.OutputStream; 16 17 /** 18 * TODO 19 */ 20 21 public interface StreamingService 22 { 23 /** 24 * A service component that passes the inputStream and output stream for an event direcly to the 25 * service component. Note that the InputStream will never be null, but the OutputStream can be null 26 * if the transport being used does not provide a response output stream and there is no outbound endpoint 27 * defined for this service. 28 * @param in 29 * @param out 30 * @param context 31 * @throws Exception 32 */ 33 void call(InputStream in, OutputStream out, UMOEventContext context) throws Exception; 34 }