|
|
@ -68,10 +68,16 @@ public class CachesController @Inject constructor( |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val name = exporter.getFileName(id) |
|
|
|
|
|
|
|
if (name == null) { |
|
|
|
|
|
|
|
call.respond(HttpStatusCode.NotFound) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
call.response.header( |
|
|
|
call.response.header( |
|
|
|
HttpHeaders.ContentDisposition, |
|
|
|
HttpHeaders.ContentDisposition, |
|
|
|
ContentDisposition.Attachment |
|
|
|
ContentDisposition.Attachment |
|
|
|
.withParameter(ContentDisposition.Parameters.FileName, "cache.zip") |
|
|
|
.withParameter(ContentDisposition.Parameters.FileName, "cache-$name.zip") |
|
|
|
.toString() |
|
|
|
.toString() |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -89,10 +95,16 @@ public class CachesController @Inject constructor( |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val name = exporter.getFileName(id) |
|
|
|
|
|
|
|
if (name == null) { |
|
|
|
|
|
|
|
call.respond(HttpStatusCode.NotFound) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
call.response.header( |
|
|
|
call.response.header( |
|
|
|
HttpHeaders.ContentDisposition, |
|
|
|
HttpHeaders.ContentDisposition, |
|
|
|
ContentDisposition.Attachment |
|
|
|
ContentDisposition.Attachment |
|
|
|
.withParameter(ContentDisposition.Parameters.FileName, "cache.tar.gz") |
|
|
|
.withParameter(ContentDisposition.Parameters.FileName, "cache-$name.tar.gz") |
|
|
|
.toString() |
|
|
|
.toString() |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -110,6 +122,19 @@ public class CachesController @Inject constructor( |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val name = exporter.getFileName(id) |
|
|
|
|
|
|
|
if (name == null) { |
|
|
|
|
|
|
|
call.respond(HttpStatusCode.NotFound) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
call.response.header( |
|
|
|
|
|
|
|
HttpHeaders.ContentDisposition, |
|
|
|
|
|
|
|
ContentDisposition.Inline |
|
|
|
|
|
|
|
.withParameter(ContentDisposition.Parameters.FileName, "keys-$name.json") |
|
|
|
|
|
|
|
.toString() |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
call.respond(exporter.exportKeys(id)) |
|
|
|
call.respond(exporter.exportKeys(id)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -120,10 +145,16 @@ public class CachesController @Inject constructor( |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val name = exporter.getFileName(id) |
|
|
|
|
|
|
|
if (name == null) { |
|
|
|
|
|
|
|
call.respond(HttpStatusCode.NotFound) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
call.response.header( |
|
|
|
call.response.header( |
|
|
|
HttpHeaders.ContentDisposition, |
|
|
|
HttpHeaders.ContentDisposition, |
|
|
|
ContentDisposition.Attachment |
|
|
|
ContentDisposition.Attachment |
|
|
|
.withParameter(ContentDisposition.Parameters.FileName, "keys.zip") |
|
|
|
.withParameter(ContentDisposition.Parameters.FileName, "keys-$name.zip") |
|
|
|
.toString() |
|
|
|
.toString() |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -172,6 +203,19 @@ public class CachesController @Inject constructor( |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val name = exporter.getFileName(id) |
|
|
|
|
|
|
|
if (name == null) { |
|
|
|
|
|
|
|
call.respond(HttpStatusCode.NotFound) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
call.response.header( |
|
|
|
|
|
|
|
HttpHeaders.ContentDisposition, |
|
|
|
|
|
|
|
ContentDisposition.Inline |
|
|
|
|
|
|
|
.withParameter(ContentDisposition.Parameters.FileName, "map-$name.png") |
|
|
|
|
|
|
|
.toString() |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
|
* The temporary BufferedImages used by the MapRenderer use a large |
|
|
|
* The temporary BufferedImages used by the MapRenderer use a large |
|
|
|
* amount of heap space. We limit the number of renders that can be |
|
|
|
* amount of heap space. We limit the number of renders that can be |
|
|
|