public abstract class ThumbnailsCache
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_HEIGHT |
static int |
DEFAULT_MAX_WIDTH |
static boolean |
DEFAULT_SECURE |
int |
maxHeight |
int |
maxWidth |
boolean |
secure |
Constructor and Description |
---|
ThumbnailsCache() |
ThumbnailsCache(ThumbnailsCache o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ThumbnailsCache.
|
static ThumbnailsCache |
fromString(java.lang.String s)
String representation of this ThumbnailsCache.
|
int |
getMaxHeight()
Maximum height of thumbnails for them to be cacheable
|
int |
getMaxWidth()
Maximum width of thumbnails for them to be cacheable
|
boolean |
isSecure()
Thumbnails are only cached and retrieved if enforce_security
is set to false for the request.
If false, thumbnails are always cached and retrieved. Warning: any logged user knowing the URL of a document could then retrieve a thumbnail for it. |
ThumbnailsCache |
makeCopy() |
static ThumbnailsCache |
readFrom(java.io.InputStream is)
Read this ThumbnailsCache from an XML fragment.
|
void |
setMaxHeight(int maxHeight)
Maximum height of thumbnails for them to be cacheable
|
void |
setMaxWidth(int maxWidth)
Maximum width of thumbnails for them to be cacheable
|
void |
setSecure(boolean secure)
Thumbnails are only cached and retrieved if enforce_security
is set to false for the request.
If false, thumbnails are always cached and retrieved. Warning: any logged user knowing the URL of a document could then retrieve a thumbnail for it. |
java.lang.String |
toString()
String representation of this ThumbnailsCache.
|
ThumbnailsCache |
withMaxHeight(int maxHeight) |
ThumbnailsCache |
withMaxHeight(java.lang.Integer maxHeight) |
ThumbnailsCache |
withMaxWidth(int maxWidth) |
ThumbnailsCache |
withMaxWidth(java.lang.Integer maxWidth) |
ThumbnailsCache |
withSecure(boolean secure) |
ThumbnailsCache |
withSecure(java.lang.Boolean secure) |
void |
writeTo(java.io.OutputStream os) |
public boolean secure
public static final boolean DEFAULT_SECURE
public int maxHeight
public static final int DEFAULT_MAX_HEIGHT
public int maxWidth
public static final int DEFAULT_MAX_WIDTH
public ThumbnailsCache()
public ThumbnailsCache(ThumbnailsCache o)
public void setSecure(boolean secure)
public boolean isSecure()
public ThumbnailsCache withSecure(boolean secure)
public ThumbnailsCache withSecure(java.lang.Boolean secure)
public void setMaxHeight(int maxHeight)
public int getMaxHeight()
public ThumbnailsCache withMaxHeight(int maxHeight)
public ThumbnailsCache withMaxHeight(java.lang.Integer maxHeight)
public void setMaxWidth(int maxWidth)
public int getMaxWidth()
public ThumbnailsCache withMaxWidth(int maxWidth)
public ThumbnailsCache withMaxWidth(java.lang.Integer maxWidth)
public ThumbnailsCache makeCopy()
public static ThumbnailsCache 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
javax.xml.bind.JAXBException
java.io.IOException
public static ThumbnailsCache 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 java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.