Mercurial > hg > digilib
changeset 1427:a244753f8f33
doc update and small cleanups.
author | robcast |
---|---|
date | Tue, 27 Oct 2015 18:44:43 +0100 |
parents | 69087d665d96 |
children | 053ff2ca45e3 |
files | doc/src/site/markdown/iiif-api.md servlet3/src/main/java/digilib/servlet/AsyncServletWorker.java servlet3/src/main/java/digilib/servlet/Scaler.java |
diffstat | 3 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/src/site/markdown/iiif-api.md Tue Oct 27 18:15:38 2015 +0100 +++ b/doc/src/site/markdown/iiif-api.md Tue Oct 27 18:44:43 2015 +0100 @@ -2,7 +2,7 @@ The Scaler servlet provides not only its native [Scaler API](scaler-api.html) but also an API compliant to the standards of the International Image Interoperability Framework http://iiif.io. -As of version 2.3 digilib supports the [IIIF Image API version 1.1](http://iiif.io/api/image/1.1/) at [compliance level 2](http://iiif.io/api/image/1.1/compliance.html) (except for forced w,h sizes where the image would be distorted). +As of version 2.3 digilib supports the [IIIF Image API version 1.1](http://iiif.io/api/image/1.1/) at [compliance level 2](http://iiif.io/api/image/1.1/compliance.html) (since V2.3.3 even for forced w,h sizes where the image will be distorted). IIIF Image API URLs for an image request have the form:
--- a/servlet3/src/main/java/digilib/servlet/AsyncServletWorker.java Tue Oct 27 18:15:38 2015 +0100 +++ b/servlet3/src/main/java/digilib/servlet/AsyncServletWorker.java Tue Oct 27 18:44:43 2015 +0100 @@ -140,7 +140,7 @@ } else { // submit response logger.debug("context complete."); - this.completed = true; + completed = true; asyncContext.complete(); } } @@ -156,7 +156,7 @@ public void onComplete(AsyncEvent event) throws IOException { logger.debug("AsyncServletWorker onComplete"); // make sure complete isn't called twice - this.completed = true; + completed = true; } @Override @@ -167,7 +167,7 @@ return; } imageWorker.stopNow(); - this.completed = true; + completed = true; Scaler.digilibError(errMsgType, Error.UNKNOWN, null, (HttpServletResponse) asyncContext.getResponse()); asyncContext.complete(); @@ -183,7 +183,7 @@ return; } imageWorker.stopNow(); - this.completed = true; + completed = true; Scaler.digilibError(errMsgType, Error.UNKNOWN, "ERROR: timeout rendering image!", (HttpServletResponse) asyncContext.getResponse()); asyncContext.complete();
--- a/servlet3/src/main/java/digilib/servlet/Scaler.java Tue Oct 27 18:15:38 2015 +0100 +++ b/servlet3/src/main/java/digilib/servlet/Scaler.java Tue Oct 27 18:44:43 2015 +0100 @@ -292,7 +292,7 @@ } /* - * if possible, send the image without actually having to transform it + * send the image if it's possible without having to transform it */ if (!jobTicket.isTransformRequired()) { logger.debug("Sending File as is.");