public abstract class AbstractImageServerClient extends Object implements ImageServerClient
ImageRequestHashBuilder that will be used when generating image urls.ENDPOINT_IMAGE_CONVERT, ENDPOINT_IMAGE_DELETE, ENDPOINT_IMAGE_INFO, ENDPOINT_IMAGE_LOAD, ENDPOINT_IMAGE_PREGENERATE, ENDPOINT_IMAGE_RENDER, ENDPOINT_IMAGE_VIEW, ENDPOINT_MODIFICATION_LIST, ENDPOINT_MODIFICATION_REGISTER, ENDPOINT_MODIFICATION_REGISTER_LIST, ENDPOINT_RESOLUTION_LIST, LOG| Modifier | Constructor and Description |
|---|---|
protected |
AbstractImageServerClient(String imageServerUrl) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addQueryParams(org.springframework.util.MultiValueMap<String,String> queryParams,
ImageModificationDto imageModification) |
protected void |
addQueryParams(org.springframework.util.MultiValueMap<String,String> queryParams,
ImageResolutionDto imageResolution) |
protected void |
addQueryParams(org.springframework.util.MultiValueMap<String,String> queryParams,
ImageVariantDto imageVariant) |
protected void |
addQueryParams(org.springframework.util.MultiValueMap<String,String> queryParams,
List<ImageModificationDto> imageModifications) |
protected URI |
buildUri(String path,
org.springframework.util.MultiValueMap<String,String> queryParams) |
protected URI |
buildUri(String path,
org.springframework.util.MultiValueMap<String,String> queryParams,
String host) |
String |
getImageServerUrl() |
protected Optional<ImageRequestHashBuilder> |
hashBuilder() |
String |
imageUrl(String imageId,
String context,
ImageResolutionDto imageResolution,
ImageVariantDto imageVariant,
String... size) |
String |
imageUrl(String imageId,
String context,
ImageTypeDto imageType,
String... size) |
String |
imageUrl(String imageId,
String context,
int width,
int height) |
String |
imageUrl(String imageId,
String context,
int width,
int height,
ImageTypeDto imageType) |
String |
imageUrl(String imageId,
String context,
int width,
int height,
ImageVariantDto imageVariant) |
String |
imageUrl(String imageId,
String context,
String... size) |
String |
imageUrl(String imageId,
String context,
String ratio,
int screenWidth,
ImageTypeDto imageType,
int width,
int height) |
String |
imageUrl(String imageId,
String context,
String ratio,
int screenWidth,
ImageVariantDto imageVariant) |
void |
setImageRequestHashBuilder(ImageRequestHashBuilder hashBuilder)
Sets an
ImageRequestHashBuilder to be used when generating image urls. |
void |
setImageServerUrl(String imageServerUrl) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertImage, convertImage, convertImage, deleteImage, imageExists, imageInfo, imageInfo, imageStream, imageStream, imageStream, imageStream, listAllowedResolutions, listConfigurableResolutions, listModifications, loadImage, loadImage, loadImage, loadImage, pregenerateResolutions, registerImageModification, registerImageModificationsprotected AbstractImageServerClient(String imageServerUrl)
public String getImageServerUrl()
getImageServerUrl in interface ImageServerClientpublic void setImageServerUrl(String imageServerUrl)
public void setImageRequestHashBuilder(ImageRequestHashBuilder hashBuilder)
ImageRequestHashBuilder to be used when generating image urls.
If one is set, image urls will be suffixed with a hash of their parameters.
If the server side is not operating in strict mode and has the same hash builder configured,
all generated image urls will be accepted and result in a working response.hashBuilder - to be usedprotected Optional<ImageRequestHashBuilder> hashBuilder()
public String imageUrl(String imageId, String context, int width, int height)
imageUrl in interface ImageServerClientpublic String imageUrl(String imageId, String context, String... size)
imageUrl in interface ImageServerClientpublic String imageUrl(String imageId, String context, int width, int height, ImageTypeDto imageType)
imageUrl in interface ImageServerClientpublic String imageUrl(String imageId, String context, int width, int height, ImageVariantDto imageVariant)
imageUrl in interface ImageServerClientpublic String imageUrl(String imageId, String context, ImageTypeDto imageType, String... size)
imageUrl in interface ImageServerClientpublic String imageUrl(String imageId, String context, ImageResolutionDto imageResolution, ImageVariantDto imageVariant, String... size)
imageUrl in interface ImageServerClientpublic String imageUrl(String imageId, String context, String ratio, int screenWidth, ImageTypeDto imageType, int width, int height)
imageUrl in interface ImageServerClientpublic String imageUrl(String imageId, String context, String ratio, int screenWidth, ImageVariantDto imageVariant)
imageUrl in interface ImageServerClientprotected URI buildUri(String path, org.springframework.util.MultiValueMap<String,String> queryParams)
protected URI buildUri(String path, org.springframework.util.MultiValueMap<String,String> queryParams, String host)
protected void addQueryParams(org.springframework.util.MultiValueMap<String,String> queryParams, ImageResolutionDto imageResolution)
protected void addQueryParams(org.springframework.util.MultiValueMap<String,String> queryParams, ImageVariantDto imageVariant)
protected void addQueryParams(org.springframework.util.MultiValueMap<String,String> queryParams, ImageModificationDto imageModification)
protected void addQueryParams(org.springframework.util.MultiValueMap<String,String> queryParams, List<ImageModificationDto> imageModifications)
Copyright © 2020. All rights reserved.