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