|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.hack23.cia.service.impl.TranslatorImpl
@Service(value="Translator") public class TranslatorImpl
The Class TranslatorImpl.
| Field Summary | |
|---|---|
static com.google.api.translate.Language |
STANDARD_PROTOCOL
The Constant STANDARD_PROTOCOL. |
static com.google.api.translate.Language |
SWEDISH_LANGUAGE
The Constant SWEDISH_LANGUAGE. |
| Constructor Summary | |
|---|---|
TranslatorImpl()
|
|
| Method Summary | |
|---|---|
String |
translate(String text,
com.google.api.translate.Language from,
com.google.api.translate.Language to)
Translate. |
String |
translateFromStandardProtocol(String text,
com.google.api.translate.Language to)
Translate from standard protocol. |
String |
translateFromSwedish(String text,
com.google.api.translate.Language to)
Translate from swedish. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final com.google.api.translate.Language STANDARD_PROTOCOL
public static final com.google.api.translate.Language SWEDISH_LANGUAGE
| Constructor Detail |
|---|
public TranslatorImpl()
| Method Detail |
|---|
@Cacheable(cacheName="Translations")
public String translate(String text,
com.google.api.translate.Language from,
com.google.api.translate.Language to)
Translator
translate in interface Translatortext - the textfrom - the fromto - the to
@Cacheable(cacheName="TranslationsToEnglish")
public String translateFromStandardProtocol(String text,
com.google.api.translate.Language to)
Translator
translateFromStandardProtocol in interface Translatortext - the textto - the to
@Cacheable(cacheName="TranslationsFromSwedish")
public String translateFromSwedish(String text,
com.google.api.translate.Language to)
Translator
translateFromSwedish in interface Translatortext - the textto - the to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||