com.liferay.portal.microsofttranslator
Class MicrosoftTranslatorImpl
java.lang.Object
com.liferay.portal.microsofttranslator.MicrosoftTranslatorImpl
- All Implemented Interfaces:
- MicrosoftTranslator
public class MicrosoftTranslatorImpl
- extends Object
- implements MicrosoftTranslator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MicrosoftTranslatorImpl
public MicrosoftTranslatorImpl()
MicrosoftTranslatorImpl
public MicrosoftTranslatorImpl(String clientId,
String clientSecret)
getMicrosoftTranslatorAuthenticator
public MicrosoftTranslatorAuthenticator getMicrosoftTranslatorAuthenticator()
translate
public String translate(String fromLanguage,
String toLanguage,
String fromText)
throws MicrosoftTranslatorException
- Specified by:
translate
in interface MicrosoftTranslator
- Throws:
MicrosoftTranslatorException
doTranslate
protected String doTranslate(String fromLanguage,
String toLanguage,
String fromText)
throws Exception
- Throws:
Exception
getMicrosoftLanguageCode
protected String getMicrosoftLanguageCode(String languageId)