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>audio/*</tag> content.
09: * <p/>
10: * TODO: implement audio/* content handler support.
11: *
12: * @author Adrian Price
13: */
14: public class MIMEAudioHandler extends AbstractContentHandler {
15: public MIMEAudioHandler() {
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 "audio";
31: }
32: }
|