public class MicrosoftTranslatorImpl extends Object implements com.liferay.portal.kernel.microsofttranslator.MicrosoftTranslator
Constructor and Description |
---|
MicrosoftTranslatorImpl() |
MicrosoftTranslatorImpl(String clientId,
String clientSecret) |
Modifier and Type | Method and Description |
---|---|
protected String |
doTranslate(String fromLanguageId,
String toLanguageId,
String fromText) |
protected String |
getMicrosoftLanguageId(String languageId) |
MicrosoftTranslatorAuthenticator |
getMicrosoftTranslatorAuthenticator() |
String |
translate(String fromLanguageId,
String toLanguageId,
String fromText) |
public MicrosoftTranslatorAuthenticator getMicrosoftTranslatorAuthenticator()
public String translate(String fromLanguageId, String toLanguageId, String fromText) throws com.liferay.portal.kernel.microsofttranslator.MicrosoftTranslatorException
translate
in interface com.liferay.portal.kernel.microsofttranslator.MicrosoftTranslator
com.liferay.portal.kernel.microsofttranslator.MicrosoftTranslatorException
protected String doTranslate(String fromLanguageId, String toLanguageId, String fromText) throws Exception
Exception