/** * Map the route for HTTP PATCH requests * * @param path the path * @param route The route */ public static void patch(String path, Route route) { getInstance().patch(path, route); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param route The route * @param engine the template engine */ public static void patch(String path, TemplateViewRoute route, TemplateEngine engine) { getInstance().patch(path, route, engine); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param acceptType the accept type * @param route The route */ public static void patch(String path, String acceptType, Route route) { getInstance().patch(path, acceptType, route); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param route The route * @param transformer the response transformer */ public static void patch(String path, Route route, ResponseTransformer transformer) { getInstance().patch(path, route, transformer); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param acceptType the accept type * @param route The route * @param transformer the response transformer */ public static void patch(String path, String acceptType, Route route, ResponseTransformer transformer) { getInstance().patch(path, acceptType, route, transformer); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public static void patch(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { getInstance().patch(path, acceptType, route, engine); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param route The route */ public static void patch(String path, Route route) { getInstance().patch(path, route); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param acceptType the accept type * @param route The route */ public static void patch(String path, String acceptType, Route route) { getInstance().patch(path, acceptType, route); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param route The route * @param engine the template engine */ public static void patch(String path, TemplateViewRoute route, TemplateEngine engine) { getInstance().patch(path, route, engine); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param route The route * @param transformer the response transformer */ public static void patch(String path, Route route, ResponseTransformer transformer) { getInstance().patch(path, route, transformer); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public static void patch(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { getInstance().patch(path, acceptType, route, engine); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param acceptType the accept type * @param route The route * @param transformer the response transformer */ public static void patch(String path, String acceptType, Route route, ResponseTransformer transformer) { getInstance().patch(path, acceptType, route, transformer); }
@PATCH @Path("/{mailQueueName}/mails") @ApiImplicitParams({ @ApiImplicitParam( required = true, dataType = "string", name = "mailQueueName", paramType = "path"), @ApiImplicitParam( required = false, dataType = "boolean", name = DELAYED_QUERY_PARAM, paramType = "query", example = "?delayed=true", value = "Whether the mails are delayed in the mail queue or not (already sent).") }) @ApiOperation( value = "Force delayed mails delivery" ) @ApiResponses(value = { @ApiResponse(code = HttpStatus.NO_CONTENT_204, message = "OK"), @ApiResponse(code = HttpStatus.BAD_REQUEST_400, message = "Invalid request for getting the mail queue."), @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The MailQueue does not exist."), @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "Internal server error - Something went bad on the server side.") }) public void forceDelayedMailsDelivery(Service service) { service.patch(BASE_URL + SEPARATOR + MAIL_QUEUE_NAME + MAILS, this::forceDelayedMailsDelivery, jsonTransformer); }
}) public void defineReprocessOne() { service.patch(MAIL_REPOSITORIES + "/:encodedPath/mails/:key", (request, response) -> { Task task = toOneMailReprocessingTask(request); TaskId taskId = taskManager.submit(task);
}) public void defineReprocessAll() { service.patch(MAIL_REPOSITORIES + "/:encodedPath/mails", (request, response) -> { Task task = toAllMailReprocessingTask(request); TaskId taskId = taskManager.submit(task);