But it doesn't work, I don't know if I need to make a step with other settings or if I made wrong a step, this is my Java Model of the component that I want to implement Web-Optimized Image Delivery, the property that have the asset is "fileReference":
package com.tfs.core.models;
import javax.annotation.PostConstruct;
import org.apache.commons.lang3.StringUtils;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.models.annotations.Default;
import org.apache.sling.models.annotations.DefaultInjectionStrategy;
import org.apache.sling.models.annotations.Exporter;
import org.apache.sling.models.annotations.Model;
import org.apache.sling.models.annotations.injectorspecific.ValueMapValue;
import com.adobe.cq.export.json.ExporterConstants;
@Model(adaptables = { Resource.class,
SlingHttpServletRequest.class }, adapters = MosaicModel.class, resourceType = MosaicModel.RESOURCE_TYPE_MOSAIC, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)
@Exporter(name = ExporterConstants.SLING_MODEL_EXPORTER_NAME, extensions = ExporterConstants.SLING_MODEL_EXTENSION)
public class MosaicModel {
public static final String RESOURCE_TYPE_MOSAIC = "tfs/components/mosaic";
@ValueMapValue(name = "title")
@Default(values = StringUtils.EMPTY)
private String title;
@ValueMapValue(name = "subTitle")
@Default(values = StringUtils.EMPTY)
private String subTitle;
@ValueMapValue(name = "fileReference")
@Default(values = StringUtils.EMPTY)
private String fileReference;
@PostConstruct
protected void init() {
}
public String getTitle() {
return title;
}
public String getSubTitle() {
return subTitle;
}
public String getFileReference() {
return fileReference;
}
}