1 /*
2 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
3 * The software in this package is published under the terms of the CPAL v1.0
4 * license, a copy of which has been included with this distribution in the
5 * LICENSE.txt file.
6 */
7 package org.mule.transport.http.components;
8
9 import java.io.ByteArrayInputStream;
10
11 import org.mule.api.MuleEventContext;
12 import org.mule.api.lifecycle.Callable;
13
14 /**
15 * A simple component which returns a stream.
16 */
17 public class StreamingResponseComponent implements Callable
18 {
19 public Object onCall(MuleEventContext eventContext) throws Exception
20 {
21 return new ByteArrayInputStream("hello".getBytes());
22 }
23 }