
@Path(value="/v2/hosts//{id}") public class HostIdHandler extends AbstractRestDbHandler
AbstractRestDbHandler handling all requests made on the
single host REST entry point.crud| Constructor and Description |
|---|
HostIdHandler(byte crud)
Initializes the handler with the given CRUD mask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteHost(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String id)
Method called to delete a host entry from the database.
|
void |
getHost(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String id)
Method called to retrieve a host entry from the database with the id 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 |
updateHost(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String id)
Method called to update the host entry with the given id.
|
checkCRUDpublic HostIdHandler(byte crud)
crud - the CRUD mask for this handler@GET @Consumes(value="*/*") public void getHost(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 host's name@PUT @Consumes(value="application/json") public void updateHost(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 host's name@DELETE @Consumes(value="*/*") public void deleteHost(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 host'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 host's nameCopyright © 2009–2020 Waarp. All rights reserved.