public class CopyResourceHandler extends Object
| Constructor and Description |
|---|
CopyResourceHandler(io.vertx.core.http.HttpClient selfClient,
String copyPath) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handle(io.vertx.core.http.HttpServerRequest request)
Handles the copy task.
|
protected void |
performGETRequest(io.vertx.core.http.HttpServerRequest request,
CopyTask task)
Performs the initial GET request to the source.
|
protected void |
performPUTRequest(io.vertx.core.http.HttpServerRequest request,
io.vertx.core.http.HttpClientResponse getResponse,
CopyTask task)
Performs the PUT request to the target.
|
protected boolean |
validTask(io.vertx.core.http.HttpServerRequest request,
CopyTask task)
Checks if the copy task is valid (simple resource, not a collection).
|
public CopyResourceHandler(io.vertx.core.http.HttpClient selfClient,
String copyPath)
public boolean handle(io.vertx.core.http.HttpServerRequest request)
request - - the requestprotected boolean validTask(io.vertx.core.http.HttpServerRequest request,
CopyTask task)
request - - the original requesttask - - the copy taskprotected void performGETRequest(io.vertx.core.http.HttpServerRequest request,
CopyTask task)
request - - the original requesttask - - the task which has to be performedprotected void performPUTRequest(io.vertx.core.http.HttpServerRequest request,
io.vertx.core.http.HttpClientResponse getResponse,
CopyTask task)
request - - the original requestgetResponse - - the GET responsetask - - the taskCopyright © 2016–2017. All rights reserved.