public class TransformedImageResponse extends Object implements TransformedResponse
| Constructor and Description |
|---|
TransformedImageResponse() |
TransformedImageResponse(ClarifiedImage transformedImage) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMeta(String name,
String value)
Add meta data for the response.
|
void |
addResponseHeader(String name,
String value)
Add/updates an entry in the the HTTP header details.
|
TransformedImageResponse |
clearHeaders()
Clear the HTTP headers.
|
String |
getMeta(String name) |
ResponseError |
getResponseError()
Get the HTTP error details to be returned.
|
Collection<ResponseHeader> |
getResponseHeaders()
Returns the HTTP header details which should be included in the HTTPResponse.
|
ClarifiedImage |
getTransformedImage()
Get the transformed image.
|
void |
removeResponseHeader(String name)
Removes an entry from the HTTP header details.
|
void |
setResponseError(ResponseError responseError)
Set the HTTP error details to be returned.
|
void |
setTransformedImage(ClarifiedImage transformedImage)
Set the transformed image.
|
public TransformedImageResponse(ClarifiedImage transformedImage)
public TransformedImageResponse()
public Collection<ResponseHeader> getResponseHeaders()
getResponseHeaders in interface TransformedResponsepublic ClarifiedImage getTransformedImage()
public void setTransformedImage(ClarifiedImage transformedImage)
transformedImage - the transformed imagepublic void addMeta(String name, String value)
name - the name of the meta to add or updatevalue - the valuepublic void addResponseHeader(String name, String value)
name - the name of the header to add/updatevalue - the valuepublic void removeResponseHeader(String name)
name - the name of the header to removepublic ResponseError getResponseError()
public void setResponseError(ResponseError responseError)
responseError - the errorpublic TransformedImageResponse clearHeaders()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries