public class ThumbnailCommand extends BaseFetchCommand implements com.exalead.util.Checkable, java.io.Serializable
BaseFetchCommand.Transformer<T>, BaseFetchCommand.Visitor
Modifier and Type | Field and Description |
---|---|
boolean |
allowUnsecurePrecomputedThumbnails |
java.lang.String |
convertAddresses |
static boolean |
DEFAULT_ALLOW_UNSECURE_PRECOMPUTED_THUMBNAILS |
static int |
DEFAULT_DEFAULT_HEIGHT |
static int |
DEFAULT_DEFAULT_WIDTH |
static int |
DEFAULT_MAX_CONCURRENT_COMPUTATIONS |
int |
defaultHeight |
int |
defaultWidth |
int |
maxConcurrentComputations |
ThumbnailsCache |
thumbnailsCache |
base, DEFAULT_BASE
Constructor and Description |
---|
ThumbnailCommand() |
ThumbnailCommand(ThumbnailCommand o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(BaseFetchCommand.Transformer<T> transformer,
T[] t) |
void |
accept(BaseFetchCommand.Visitor visitor) |
<T> T |
accept(Command.Transformer<T> transformer,
T[] t) |
void |
accept(Command.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ThumbnailCommand.
|
static ThumbnailCommand |
fromString(java.lang.String s)
String representation of this ThumbnailCommand.
|
java.lang.String |
getConvertAddresses()
Semicolon separated list of convert instance names or urls to use.
|
int |
getDefaultHeight()
Height of the computed thumbnail, if not specified in request
|
int |
getDefaultWidth()
Width of the computed thumbnail, if not specified in request
|
int |
getMaxConcurrentComputations()
Maximum number of concurrent thumbnail computations.
Thumbnail queries that do not require a computation (cache hits) are not considered. |
ThumbnailsCache |
getThumbnailsCache()
Cache for the thumbnails computed on the fly
|
boolean |
isAllowUnsecurePrecomputedThumbnails()
When security is enforced on the fetch request, should a precomputed thumbnail
be returned, if any. Security is not enforced on precomputed thumbnails: any logged user knowing the URL of a document could retrieve its precomputed thumbnail. |
ThumbnailCommand |
makeCopy()
Creates and returns a deep copy of this ThumbnailCommand.
|
static ThumbnailCommand |
readFrom(java.io.InputStream is)
Read this ThumbnailCommand from an XML fragment.
|
void |
setAllowUnsecurePrecomputedThumbnails(boolean allowUnsecurePrecomputedThumbnails)
When security is enforced on the fetch request, should a precomputed thumbnail
be returned, if any. Security is not enforced on precomputed thumbnails: any logged user knowing the URL of a document could retrieve its precomputed thumbnail. |
void |
setConvertAddresses(java.lang.String convertAddresses)
Semicolon separated list of convert instance names or urls to use.
|
void |
setDefaultHeight(int defaultHeight)
Height of the computed thumbnail, if not specified in request
|
void |
setDefaultWidth(int defaultWidth)
Width of the computed thumbnail, if not specified in request
|
void |
setMaxConcurrentComputations(int maxConcurrentComputations)
Maximum number of concurrent thumbnail computations.
Thumbnail queries that do not require a computation (cache hits) are not considered. |
void |
setThumbnailsCache(ThumbnailsCache thumbnailsCache)
Cache for the thumbnails computed on the fly
|
java.lang.String |
toString()
String representation of this ThumbnailCommand.
|
ThumbnailCommand |
withAllowUnsecurePrecomputedThumbnails(boolean allowUnsecurePrecomputedThumbnails) |
ThumbnailCommand |
withAllowUnsecurePrecomputedThumbnails(java.lang.Boolean allowUnsecurePrecomputedThumbnails) |
ThumbnailCommand |
withBase(java.lang.String base) |
ThumbnailCommand |
withConvertAddresses(java.lang.String convertAddresses) |
ThumbnailCommand |
withDefaultHeight(int defaultHeight) |
ThumbnailCommand |
withDefaultHeight(java.lang.Integer defaultHeight) |
ThumbnailCommand |
withDefaultWidth(int defaultWidth) |
ThumbnailCommand |
withDefaultWidth(java.lang.Integer defaultWidth) |
ThumbnailCommand |
withMaxConcurrentComputations(int maxConcurrentComputations) |
ThumbnailCommand |
withMaxConcurrentComputations(java.lang.Integer maxConcurrentComputations) |
ThumbnailCommand |
withThumbnailsCache(ThumbnailsCache thumbnailsCache) |
void |
writeTo(java.io.OutputStream os)
Write this ThumbnailCommand as an XML fragment
|
public int maxConcurrentComputations
public static final int DEFAULT_MAX_CONCURRENT_COMPUTATIONS
public int defaultWidth
public static final int DEFAULT_DEFAULT_WIDTH
public int defaultHeight
public static final int DEFAULT_DEFAULT_HEIGHT
public ThumbnailsCache thumbnailsCache
public boolean allowUnsecurePrecomputedThumbnails
public static final boolean DEFAULT_ALLOW_UNSECURE_PRECOMPUTED_THUMBNAILS
public java.lang.String convertAddresses
public ThumbnailCommand()
public ThumbnailCommand(ThumbnailCommand o)
public ThumbnailCommand withBase(java.lang.String base)
withBase
in class BaseFetchCommand
public void setMaxConcurrentComputations(int maxConcurrentComputations)
public int getMaxConcurrentComputations()
public ThumbnailCommand withMaxConcurrentComputations(int maxConcurrentComputations)
public ThumbnailCommand withMaxConcurrentComputations(java.lang.Integer maxConcurrentComputations)
public void setDefaultWidth(int defaultWidth)
public int getDefaultWidth()
public ThumbnailCommand withDefaultWidth(int defaultWidth)
public ThumbnailCommand withDefaultWidth(java.lang.Integer defaultWidth)
public void setDefaultHeight(int defaultHeight)
public int getDefaultHeight()
public ThumbnailCommand withDefaultHeight(int defaultHeight)
public ThumbnailCommand withDefaultHeight(java.lang.Integer defaultHeight)
public void setThumbnailsCache(ThumbnailsCache thumbnailsCache)
public ThumbnailsCache getThumbnailsCache()
public ThumbnailCommand withThumbnailsCache(ThumbnailsCache thumbnailsCache)
public void setAllowUnsecurePrecomputedThumbnails(boolean allowUnsecurePrecomputedThumbnails)
public boolean isAllowUnsecurePrecomputedThumbnails()
public ThumbnailCommand withAllowUnsecurePrecomputedThumbnails(boolean allowUnsecurePrecomputedThumbnails)
public ThumbnailCommand withAllowUnsecurePrecomputedThumbnails(java.lang.Boolean allowUnsecurePrecomputedThumbnails)
public void setConvertAddresses(java.lang.String convertAddresses)
public java.lang.String getConvertAddresses()
public ThumbnailCommand withConvertAddresses(java.lang.String convertAddresses)
public ThumbnailCommand makeCopy()
makeCopy
in class BaseFetchCommand
public static ThumbnailCommand readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class BaseFetchCommand
javax.xml.bind.JAXBException
java.io.IOException
public static ThumbnailCommand fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class BaseFetchCommand
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class BaseFetchCommand
com.exalead.util.TypedException
public void accept(BaseFetchCommand.Visitor visitor) throws com.exalead.util.TypedException
accept
in class BaseFetchCommand
com.exalead.util.TypedException
public void accept(Command.Visitor visitor) throws com.exalead.util.TypedException
public <T> T accept(BaseFetchCommand.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class BaseFetchCommand
com.exalead.util.TypedException
public <T> T accept(Command.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.