Liferay 6.1.2-ce-ga3

com.liferay.portal.microsofttranslator
Class MicrosoftTranslatorImpl

java.lang.Object
  extended by com.liferay.portal.microsofttranslator.MicrosoftTranslatorImpl
All Implemented Interfaces:
MicrosoftTranslator

public class MicrosoftTranslatorImpl
extends Object
implements MicrosoftTranslator


Constructor Summary
MicrosoftTranslatorImpl()
           
MicrosoftTranslatorImpl(String clientId, String clientSecret)
           
 
Method Summary
protected  String doTranslate(String fromLanguage, String toLanguage, String fromText)
           
protected  String getMicrosoftLanguageCode(String languageId)
           
 MicrosoftTranslatorAuthenticator getMicrosoftTranslatorAuthenticator()
           
 String translate(String fromLanguage, String toLanguage, String fromText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MicrosoftTranslatorImpl

public MicrosoftTranslatorImpl()

MicrosoftTranslatorImpl

public MicrosoftTranslatorImpl(String clientId,
                               String clientSecret)
Method Detail

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)

Liferay 6.1.2-ce-ga3