
@Path(value="/v2/filemonitors") public class SpooledHandler extends AbstractRestDbHandler
AbstractHttpHandler handling all requests made on the
FileMonitor collection REST entry point.crud| Constructor and Description |
|---|
SpooledHandler(byte crud)
Initializes the handler with the given CRUD mask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
filterTransfer(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String nameStr,
String statusStr,
String countOrder)
Method called to obtain a list of FileMonitors 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.
|
checkCRUD, checkSanity, checkSanitypublic SpooledHandler(byte crud)
crud - the CRUD mask for this handler@GET @Consumes(value="application/x-www-form-urlencoded") public final void filterTransfer(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder, @QueryParam(value="name") @DefaultValue(value="") String nameStr, @QueryParam(value="status") @DefaultValue(value="") String statusStr, @QueryParam(value="countOrder") @DefaultValue(value="") String countOrder)
request - the HttpRequest made on the resourceresponder - the HttpResponder which sends the reply to the requestnameStr - the name of the FileMonitor or empty for allstatusStr - 0 or empty for all, 1 for active ones, -1 for inactive
onescountOrder - if true is specified, it turns out to be a "count"
request only of current files@OPTIONS @Consumes(value="*/*") public final 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–2022 Waarp. All rights reserved.