
@Path(value="/v2/rules//{id}") public class RuleIdHandler extends AbstractRestDbHandler
AbstractRestDbHandler handling all requests made on a
single rule REST entry point.crud| Constructor and Description |
|---|
RuleIdHandler(byte crud)
Initializes the handler with the given CRUD mask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRule(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String id)
Method called to delete a transfer rule from the database.
|
void |
getRule(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String id)
Method called to retrieve a transfer rule with the id given in the
request URI.
|
void |
options(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String id)
Method called to get a list of all allowed HTTP methods on this entry
point.
|
void |
updateRule(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String id)
Method called to update a transfer rule.
|
checkCRUDpublic RuleIdHandler(byte crud)
crud - the CRUD mask for this handler@GET @Consumes(value="*/*") public void getRule(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder, @PathParam(value="id") String id)
request - the HttpRequest made on the resourceresponder - the HttpResponder which sends the reply to the
requestid - the requested rule's name@PUT @Consumes(value="application/json") public void updateRule(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder, @PathParam(value="id") String id)
request - the HttpRequest made on the resourceresponder - the HttpResponder which sends the reply to the
requestid - the requested rule's name@DELETE @Consumes(value="*/*") public void deleteRule(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder, @PathParam(value="id") String id)
request - the HttpRequest made on the resourceresponder - the HttpResponder which sends the reply to the
requestid - the requested rule's name@OPTIONS @Consumes(value="*/*") public void options(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder, @PathParam(value="id") String id)
request - the HttpRequest made on the resourceresponder - the HttpResponder which sends the reply to the
requestid - the requested rule's nameCopyright © 2009–2020 Waarp. All rights reserved.