
@Path(value="/v2/transfers/") public class TransfersHandler extends AbstractRestDbHandler
AbstractRestDbHandler handling all requests made on the
transfer collection REST entry
point.crud| Constructor and Description |
|---|
TransfersHandler(byte crud)
Initializes the handler with the given CRUD mask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createTransfer(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder)
Method called to create a new transfer on the server.
|
void |
filterTransfer(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String limitStr,
String offsetStr,
String orderStr,
String ruleID,
String partner,
String statusStr,
String filename,
String startTrans,
String stopTrans)
Method called to obtain a list of transfer entry matching the different
filters given as parameters of the
query.
|
void |
options(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder)
Method called to get a list of all allowed HTTP methods on this entry
point.
|
checkCRUDpublic TransfersHandler(byte crud)
crud - the CRUD mask for this handler@GET @Consumes(value="application/x-www-form-urlencoded") public void filterTransfer(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder, @QueryParam(value="limit") @DefaultValue(value="20") String limitStr, @QueryParam(value="offset") @DefaultValue(value="0") String offsetStr, @QueryParam(value="order") @DefaultValue(value="ascId") String orderStr, @QueryParam(value="ruleID") @DefaultValue(value="") String ruleID, @QueryParam(value="partner") @DefaultValue(value="") String partner, @QueryParam(value="status") @DefaultValue(value="") String statusStr, @QueryParam(value="filename") @DefaultValue(value="") String filename, @QueryParam(value="startTrans") @DefaultValue(value="") String startTrans, @QueryParam(value="stopTrans") @DefaultValue(value="") String stopTrans)
request - the HttpRequest made on the resourceresponder - the HttpResponder which sends the reply to the
requestlimitStr - maximum number of entries allowed in the
responseoffsetStr - index of the first accepted entry in the list
of all valid answersorderStr - the criteria used to sort the entries and the
way of orderingruleID - filter transfers that use this rulepartner - filter transfers that have this partnerstatusStr - filter transfers currently in one of these
statusesfilename - filter transfers of a particular filestartTrans - lower bound for the transfers' starting datestopTrans - upper bound for the transfers' starting date@POST @Consumes(value="application/json") public void createTransfer(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder)
request - the HttpRequest made on the resourceresponder - the HttpResponder which sends the reply to the
request@OPTIONS @Consumes(value="*/*") public void options(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder)
request - the HttpRequest made on the resourceresponder - the HttpResponder which sends the reply to the
requestCopyright © 2009–2020 Waarp. All rights reserved.