@Path(value="/v2/transfers//{id}") public class TransferIdHandler extends AbstractRestDbHandler
AbstractRestDbHandler
handling all requests made on the
single transfer REST entry
point.crud
Constructor and Description |
---|
TransferIdHandler(byte crud)
Initializes the handler with the given CRUD mask.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelTransfer(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String uri)
Method called to cancel a staged or running transfer.
|
void |
getTransfer(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String uri)
Method called to obtain the information on the transfer whose id was
given in the request's URI.
|
void |
options(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String uri)
Method called to get a list of all allowed HTTP methods on this entry
point.
|
void |
restartTransfer(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String uri)
Method called to restart a paused transfer.
|
void |
stopTransfer(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String uri)
Method called to pause a staged or running transfer.
|
void |
subOptions(io.netty.handler.codec.http.HttpRequest request,
io.cdap.http.HttpResponder responder,
String uri,
String ep) |
checkCRUD
public TransferIdHandler(byte crud)
crud
- the CRUD mask for this handler@GET @Consumes(value="*/*") public void getTransfer(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder, @PathParam(value="id") String uri) throws UnsupportedEncodingException
**NOTE:** The uri
parameter refers to the concatenation of the
transfer's id, and the name of the
host to which the transfer was requested, separated by an underscore
character.
request
- the HttpRequest made to the resourceresponder
- the HttpResponder which sends the reply to the
requesturi
- the transfer's unique identifierUnsupportedEncodingException
@Path(value="restart") @PUT @Consumes(value="*/*") public void restartTransfer(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder, @PathParam(value="id") String uri) throws UnsupportedEncodingException
**NOTE:** The uri
parameter refers to the concatenation of the
transfer's id, and the name of the
host to which the transfer was requested, separated by an underscore
character.
request
- the HttpRequest made to the resourceresponder
- the HttpResponder which sends the reply to the
requesturi
- the transfer's unique identifierUnsupportedEncodingException
@Path(value="stop") @PUT @Consumes(value="*/*") public void stopTransfer(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder, @PathParam(value="id") String uri) throws UnsupportedEncodingException
**NOTE:** The uri
parameter refers to the concatenation of the
transfer's id, and the name of the
host to which the transfer was requested, separated by an underscore
character.
request
- the HttpRequest made to the resourceresponder
- the HttpResponder which sends the reply to the
requesturi
- the transfer's unique identifierUnsupportedEncodingException
@Path(value="cancel") @PUT @Consumes(value="*/*") public void cancelTransfer(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder, @PathParam(value="id") String uri) throws UnsupportedEncodingException
**NOTE:** The uri
parameter refers to the concatenation of the
transfer's id, and the name of the
host to which the transfer was requested, separated by an underscore
character.
request
- the HttpRequest made to the resourceresponder
- the HttpResponder which sends the reply to the
requesturi
- the transfer's unique identifierUnsupportedEncodingException
@OPTIONS @Consumes(value="*/*") public void options(io.netty.handler.codec.http.HttpRequest request, io.cdap.http.HttpResponder responder, @PathParam(value="id") String uri)
**NOTE:** The uri
parameter refers to the concatenation of the
transfer's id, and the name of the
host to which the transfer was requested, separated by an underscore
character.
request
- the HttpRequest made to the resourceresponder
- the HttpResponder which sends the reply to the
requesturi
- the transfer's unique identifierCopyright © 2009–2020 Waarp. All rights reserved.