public class AxisAsyncTranslationServiceExecutor extends AbstractAxisServiceExecutor implements AsyncTranslationService
Constructor and Description |
---|
AxisAsyncTranslationServiceExecutor(String invocationName,
long iid,
Endpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
AsyncTranslationResult |
getCurrentResult(String token) |
String |
startTranslation(String sourceLang,
String targetLang,
String[] sources)
Run asynchronous translation.
|
void |
terminate(String token) |
convert, postprocessSoap, preprocessSoap
getInvocationName, postprocess, preprocess
public String startTranslation(String sourceLang, String targetLang, String[] sources) throws InvalidParameterException, ProcessFailedException
AsyncTranslationService
startTranslation
in interface AsyncTranslationService
sourceLang
- Translation source language (RFC3066 compliant)targetLang
- Target language of the translation (RFC3066 compliant)InvalidParameterException
- An invalid parameter was passedProcessFailedException
- Translation process failedpublic AsyncTranslationResult getCurrentResult(String token) throws InvalidParameterException, ProcessFailedException
getCurrentResult
in interface AsyncTranslationService
InvalidParameterException
- An invalid parameter was passedProcessFailedException
- Translation process failedpublic void terminate(String token) throws InvalidParameterException, ProcessFailedException
terminate
in interface AsyncTranslationService
InvalidParameterException
- An invalid parameter was passedProcessFailedException
- Translation process failed