LOGGER.debug("Request is handled via the IIIFRequest shim");
}
final ImageRequest imageRequest = (ImageRequest) iiif;
final String size = imageRequest.getSize().toString();
final Region iiifRegion = imageRequest.getRegion();
final float rotation = imageRequest.getRotation();
String region;
// Djatoka expects a different order from what OpenSeadragon sends
// so we have to reconstruct rather than use Region's toString().
if (iiifRegion.isFullSize()) {
region = "";
} else {
final StringBuilder rsb = new StringBuilder();
rsb.append(iiifRegion.getY()).append(',');
rsb.append(iiifRegion.getX()).append(',');
rsb.append(iiifRegion.getHeight()).append(',');
rsb.append(iiifRegion.getWidth());
// Now, we have the string order that Djatoka wants
region = rsb.toString();
}