# HG changeset patch # User robcast # Date 1445967883 -3600 # Node ID a244753f8f339227899164628a4457dbb82d1573 # Parent 69087d665d9648db761fc635935f079f6adcaa5f doc update and small cleanups. diff -r 69087d665d96 -r a244753f8f33 doc/src/site/markdown/iiif-api.md --- 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: diff -r 69087d665d96 -r a244753f8f33 servlet3/src/main/java/digilib/servlet/AsyncServletWorker.java --- 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(); diff -r 69087d665d96 -r a244753f8f33 servlet3/src/main/java/digilib/servlet/Scaler.java --- 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.");