public class ImageApiProfile extends Profile
An Image API profile.
Can be either a simple pre-defined profile (e.g. LEVEL_ZERO) or a complex profile describing the available features of a given IIIF image.
See http://iiif.io/api/image/2.1/#profile-description for an overview of all available properties and features and http://iiif.io/api/image/2.1/compliance/ for an overview of the available compliance levels.
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageApiProfile.Feature |
static class |
ImageApiProfile.Format |
static class |
ImageApiProfile.Quality |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT |
static ImageApiProfile |
LEVEL_ONE |
static ImageApiProfile |
LEVEL_TWO |
static ImageApiProfile |
LEVEL_ZERO |
static String |
TYPE |
static Set<String> |
V1_PROFILES |
| Constructor and Description |
|---|
ImageApiProfile() |
getIdentifierpublic static final ImageApiProfile LEVEL_ZERO
public static final ImageApiProfile LEVEL_ONE
public static final ImageApiProfile LEVEL_TWO
public static final String CONTEXT
public static final String TYPE
public static ImageApiProfile fromUrl(String url)
public Set<ImageApiProfile.Format> getFormats()
public void setFormats(Set<ImageApiProfile.Format> formats)
public ImageApiProfile addFormat(ImageApiProfile.Format first, ImageApiProfile.Format... rest)
public Set<ImageApiProfile.Quality> getQualities()
public void setQualities(Set<ImageApiProfile.Quality> qualities)
public ImageApiProfile addQuality(ImageApiProfile.Quality first, ImageApiProfile.Quality... rest)
public Set<ImageApiProfile.Feature> getFeatures()
public void setFeatures(Set<ImageApiProfile.Feature> features)
public ImageApiProfile addFeature(ImageApiProfile.Feature first, ImageApiProfile.Feature... rest)
public Long getMaxArea()
public void setMaxArea(Long maxArea)
public Integer getMaxHeight()
public void setMaxHeight(Integer maxHeight)
public Integer getMaxWidth()
public void setMaxWidth(Integer maxWidth)
public static ImageApiProfile merge(List<Profile> profiles)
Merge multiple profiles into one. Useful for image servers that want to consolidate the limits given in a info.json.
public ImageApiProfile merge(ImageApiProfile other)
Merge two profiles.
Copyright © 2018. All rights reserved.