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, preprocessSoapgetInvocationName, postprocess, preprocesspublic String startTranslation(String sourceLang, String targetLang, String[] sources) throws InvalidParameterException, ProcessFailedException
AsyncTranslationServicestartTranslation in interface AsyncTranslationServicesourceLang - 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 AsyncTranslationServiceInvalidParameterException - An invalid parameter was passedProcessFailedException - Translation process failedpublic void terminate(String token) throws InvalidParameterException, ProcessFailedException
terminate in interface AsyncTranslationServiceInvalidParameterException - An invalid parameter was passedProcessFailedException - Translation process failed