@Singleton @Path(value="/estimateForAnonymous") public final class EstimateForAnonymous extends AbstractOryxResource
Responds to a GET request to
/estimateForAnonymous/[toItemID]/[itemID1(=value1)](/[itemID2(=value2)]/...)
.
That is, 1 or more item IDs are supplied, which may each optionally correspond to
a value or else default to 1.
Unknown item IDs are ignored.
Outputs the result of the method call as a value on one line.
INPUT_PRODUCER_KEY, MODEL_MANAGER_KEY
Constructor and Description |
---|
EstimateForAnonymous() |
Modifier and Type | Method and Description |
---|---|
Double |
get(String toItemID,
List<javax.ws.rs.core.PathSegment> pathSegments) |
check, check, checkExists, checkNotReadOnly, getServingModel, isReadOnly, maybeBuffer, maybeBuffer, maybeDecompress, parseMultipart, sendInput
getInputProducer, getServingModelManager, init
@GET @Path(value="{toItemID}/{itemID : .+}") @Produces(value={"text/plain","text/csv","application/json"}) public Double get(@PathParam(value="toItemID") String toItemID, @PathParam(value="itemID") List<javax.ws.rs.core.PathSegment> pathSegments) throws OryxServingException
OryxServingException
Copyright © 2014–2018. All rights reserved.