public class BinaryMetadataReader extends AbstractReader implements Serviceable
Reader
for exposing a binary property from a JCR repository.mime-type
.Modifier and Type | Field and Description |
---|---|
private String |
_aoId |
private String |
_compositePath |
private String |
_mdName |
private String |
_mdType |
private String |
_mimeType |
private AmetysObjectResolver |
_resolver |
private String |
_richtextPath |
objectModel, out, parameters, resolver, source
Constructor and Description |
---|
BinaryMetadataReader() |
Modifier and Type | Method and Description |
---|---|
private AmetysObject |
_getAmetysObject() |
private CompositeMetadata |
_getCompositeMetadata(AmetysObject ao) |
private String |
_getMimeType() |
void |
generate() |
String |
getMimeType() |
void |
service(ServiceManager manager) |
void |
setup(SourceResolver res,
Map objModel,
String src,
Parameters params) |
getLastModified, recycle, setOutputStream, shouldSetContentLength
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private AmetysObjectResolver _resolver
private String _compositePath
private String _richtextPath
public BinaryMetadataReader()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void setup(SourceResolver res, Map objModel, String src, Parameters params) throws ProcessingException, SAXException, IOException
setup
in interface SitemapModelComponent
setup
in class AbstractReader
ProcessingException
SAXException
IOException
public String getMimeType()
getMimeType
in interface SitemapOutputComponent
getMimeType
in class AbstractReader
public void generate() throws IOException, SAXException, ProcessingException
generate
in interface Reader
IOException
SAXException
ProcessingException
private CompositeMetadata _getCompositeMetadata(AmetysObject ao)
private String _getMimeType()
private AmetysObject _getAmetysObject()