Class ImageRequestHandler
java.lang.Object
is.galia.resource.ImageRequestHandler
High-level image request handler. Use the return value of builder()
to create new instances.
This class provides a simple interface that image-serving endpoints can
use to convert client arguments into images. Simplicity is achieved by
abstracting away as much of the tedium of image request handling (caching,
format detection, connecting sources
to processors
, etc.) as possible. There is also no coupling to any particular
image-serving protocol.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
BuildsImageRequestHandler
instances.static interface
Callback for various events that occur during a call tohandle(Response)
. -
Field Summary
FieldsModifier and TypeFieldDescriptionURL argument values that can be used with thecache
query key to bypass all caching. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageRequestHandler.Builder
builder()
void
Handles an image request.
-
Field Details
-
CACHE_BYPASS_ARGUMENTS
-
CACHE_READ_BYPASS_ARGUMENTS
-
-
Constructor Details
-
ImageRequestHandler
protected ImageRequestHandler()
-
-
Method Details
-
builder
-
handle
-