@Path(value="/v2/limits/") public class LimitsHandler extends AbstractRestDbHandler
AbstractRestDbHandler
handling all requests made on the
bandwidth limits REST entry
point.crud
Constructor and Description |
---|
LimitsHandler(byte crud)
Initializes the handler with the given CRUD mask.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteLimits(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder)
Method called to remove any bandwidth limits in place on this host.
|
void |
getLimits(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder)
Method called to obtain a description of the host's current bandwidth
limits.
|
void |
initializeLimits(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder)
Method called to initiate the entry for this host in the bandwidth limits
database.
|
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 |
updateLimits(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder)
Method called to update this host's bandwidth limits in the database and
configuration.
|
checkCRUD
public LimitsHandler(byte crud)
crud
- the CRUD mask for this handler@GET @Consumes(value="*/*") public void getLimits(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/json") public void initializeLimits(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 updateLimits(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 deleteLimits(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.