@Path(value="/v2/hostconfig/") public class HostConfigHandler extends AbstractRestDbHandler
AbstractRestDbHandler
handling all requests made on the
host configuration REST entry
point.crud
Constructor and Description |
---|
HostConfigHandler(byte crud)
Initializes the handler with the given CRUD mask.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteConfig(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder)
Method called to delete a host's configuration entry in the database.
|
void |
getConfig(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder)
Method called to retrieve a host's configuration entry in the database.
|
void |
initializeConfig(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder)
Method called to initialize a host's configuration database entry if none
already exists.
|
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.
|
void |
updateConfig(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder)
Method called to update a host's configuration in the database if it
exists.
|
checkCRUD
public HostConfigHandler(byte crud)
crud
- the CRUD mask for this handler@GET @Consumes(value="*/*") public void getConfig(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@POST @Consumes(value="application/x-www-form-urlencoded") public void initializeConfig(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@PUT @Consumes(value="application/json") public void updateConfig(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@DELETE @Consumes(value="*/*") public void deleteConfig(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.