01: package org.obe.event;
02:
03: import org.obe.spi.service.ServiceManager;
04: import org.obe.client.api.repository.RepositoryException;
05: import java.util.Properties;
06:
07: /**
08: * Handles MIME <tag>image/*</tag> content.
09: * <p/>
10: * TODO: implement image/* content handler support.
11: *
12: * @author Adrian Price
13: */
14: public class MIMEImageHandler extends AbstractContentHandler {
15: public MIMEImageHandler() {
16: }
17:
18: public void init(ServiceManager svcMgr, Properties props) {
19: init(svcMgr);
20:
21: // TODO: figure out hint format.
22: }
23:
24: protected String getSchema(Object data, String contentType) {
25: return "";
26: }
27:
28: public String getContentType(Object data)
29: throws RepositoryException {
30: return "image";
31: }
32: }
|