public class EchoTranslation extends Object implements TranslationService
| Constructor and Description |
|---|
EchoTranslation() |
public String translate(String sourceLang, String targetLang, String source) throws InvalidParameterException, ProcessFailedException
TranslationServicetranslate in interface TranslationServicesourceLang - Translation source language (RFC3066 compliant)targetLang - Target language of the translation (RFC3066 compliant)source - String to be translatedInvalidParameterException - An invalid parameter was passedLanguagePairNotUniquelyDecidedException - Multiple candidate language pairs existUnsupportedLanguagePairException - An unsupported language pair was specifiedProcessFailedException - Translation process failed