@Path(value="/add") public final class Add extends OryxResource
/add/[line]. Adds a new line of input for processing.
Also responds to a POST to /add which contains lines in the request body.INPUT_PRODUCER_KEY, MODEL_MANAGER_KEY| Constructor and Description |
|---|
Add() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String line) |
void |
post(Reader reader) |
getInputProducer, getServingModelManager, init@POST
@Path(value="{line}")
public void add(@PathParam(value="line")
String line)
@POST
@Consumes(value={"text/plain","application/json"})
public void post(Reader reader)
throws IOException
IOExceptionCopyright © 2014–2018. All rights reserved.