public final class InlineImageDataSource
extends java.lang.Object
implements com.openexchange.image.ImageDataSource
InlineImageDataSource - A DataSource for image parts inside a mail.| Modifier and Type | Method and Description |
|---|---|
com.openexchange.conversion.DataArguments |
generateDataArgumentsFrom(com.openexchange.image.ImageLocation imageLocation)
Generates appropriate data arguments for specified image location.
|
java.lang.String |
generateUrl(com.openexchange.image.ImageLocation imageLocation,
com.openexchange.session.Session session)
Generates the URL linking to image data
|
java.lang.String |
getAlias()
Gets the alias (starting with
'/' character). |
<D> com.openexchange.conversion.Data<D> |
getData(java.lang.Class<? extends D> type,
com.openexchange.conversion.DataArguments dataArguments,
com.openexchange.session.Session session) |
java.lang.String |
getETag(com.openexchange.image.ImageLocation imageLocation,
com.openexchange.session.Session session)
Gets the ETag for this image data source.
|
long |
getExpires()
Gets the expires (time-to-live)
|
static InlineImageDataSource |
getInstance()
Gets the instance
|
java.lang.String |
getRegistrationName()
Gets this data source's registration name.
|
java.lang.String[] |
getRequiredArguments()
Common required arguments for uniquely determining a mail part:
com.openexchange.mail.conversion.fullname
com.openexchange.mail.conversion.mailid
com.openexchange.mail.conversion.cid
|
java.lang.Class<?>[] |
getTypes() |
com.openexchange.image.ImageLocation |
parseRequest(com.openexchange.ajax.requesthandler.AJAXRequestData requestData)
Parses specified AJAXRequestData to its image location.
|
com.openexchange.image.ImageLocation |
parseUrl(java.lang.String url)
Parses specified URL to its image location.
|
public static InlineImageDataSource getInstance()
public java.lang.String generateUrl(com.openexchange.image.ImageLocation imageLocation,
com.openexchange.session.Session session)
com.openexchange.image.ImageDataSourcegenerateUrl in interface com.openexchange.image.ImageDataSourcepublic com.openexchange.conversion.DataArguments generateDataArgumentsFrom(com.openexchange.image.ImageLocation imageLocation)
com.openexchange.image.ImageDataSourcegenerateDataArgumentsFrom in interface com.openexchange.image.ImageDataSourceimageLocation - The image locationpublic com.openexchange.image.ImageLocation parseUrl(java.lang.String url)
com.openexchange.image.ImageDataSourceparseUrl in interface com.openexchange.image.ImageDataSourceurl - The URL to parsepublic com.openexchange.image.ImageLocation parseRequest(com.openexchange.ajax.requesthandler.AJAXRequestData requestData)
com.openexchange.image.ImageDataSourceparseRequest in interface com.openexchange.image.ImageDataSourcerequestData - The AJAXRequestData to parsepublic long getExpires()
com.openexchange.image.ImageDataSourcegetExpires in interface com.openexchange.image.ImageDataSource-1 for no expirypublic java.lang.String getETag(com.openexchange.image.ImageLocation imageLocation,
com.openexchange.session.Session session)
com.openexchange.image.ImageDataSourcegetETag in interface com.openexchange.image.ImageDataSourceimageLocation - The image locationsession - The sessionpublic java.lang.String[] getRequiredArguments()
getRequiredArguments in interface com.openexchange.conversion.DataSourcepublic java.lang.Class<?>[] getTypes()
getTypes in interface com.openexchange.conversion.DataSourcepublic <D> com.openexchange.conversion.Data<D> getData(java.lang.Class<? extends D> type,
com.openexchange.conversion.DataArguments dataArguments,
com.openexchange.session.Session session)
throws com.openexchange.exception.OXException
getData in interface com.openexchange.conversion.DataSourcecom.openexchange.exception.OXExceptionpublic java.lang.String getRegistrationName()
com.openexchange.image.ImageDataSourcegetRegistrationName in interface com.openexchange.image.ImageDataSourcepublic java.lang.String getAlias()
com.openexchange.image.ImageDataSource'/' character).getAlias in interface com.openexchange.image.ImageDataSource