/*
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.runtime.core.component.simple;
import org.mule.runtime.core.api.MuleEventContext;
import org.mule.runtime.core.api.component.simple.EchoService;
/**
* <code>EchoComponent</code> will log the message and return the payload back as the result.
*/
public class EchoComponent extends LogComponent implements EchoService {
@Override
public Object onCall(MuleEventContext context) throws Exception {
super.onCall(context);
return context.getMessage();
}
public String echo(String echo) {
return echo;
}
}