@Path(value="/translate") public class TranslateResource extends Object
Constructor and Description |
---|
TranslateResource(ServerStatus serverStatus) |
Modifier and Type | Method and Description |
---|---|
String |
autoTranslate(InputStream is,
String translator,
String dLang) |
String |
translate(InputStream is,
String translator,
String sLang,
String dLang) |
public TranslateResource(ServerStatus serverStatus)
@PUT @POST @Path(value="/all/{translator}/{src}/{dest}") @Consumes(value="*/*") @Produces(value="text/plain") public String translate(InputStream is, @PathParam(value="translator") String translator, @PathParam(value="src") String sLang, @PathParam(value="dest") String dLang) throws TikaException, IOException
TikaException
IOException
@PUT @POST @Path(value="/all/{translator}/{dest}") @Consumes(value="*/*") @Produces(value="text/plain") public String autoTranslate(InputStream is, @PathParam(value="translator") String translator, @PathParam(value="dest") String dLang) throws TikaException, IOException
TikaException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.