Liferay 6.2-ce-ga5

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 fromLanguageId, String toLanguageId, String fromText)
           
protected  String getMicrosoftLanguageId(String languageId)
           
 MicrosoftTranslatorAuthenticator getMicrosoftTranslatorAuthenticator()
           
 String translate(String fromLanguageId, String toLanguageId, 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 fromLanguageId,
                        String toLanguageId,
                        String fromText)
                 throws MicrosoftTranslatorException
Specified by:
translate in interface MicrosoftTranslator
Throws:
MicrosoftTranslatorException

doTranslate

protected String doTranslate(String fromLanguageId,
                             String toLanguageId,
                             String fromText)
                      throws Exception
Throws:
Exception

getMicrosoftLanguageId

protected String getMicrosoftLanguageId(String languageId)

Liferay 6.2-ce-ga5