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>message/*</tag> content.
09: * <p/>
10: * TODO: implement message/* content handler support.
11: *
12: * @author Adrian Price
13: */
14: public class MIMEMessageHandler extends AbstractContentHandler {
15: public MIMEMessageHandler() {
16: }
17:
18: public void init(ServiceManager svcMgr, Properties props) {
19: init(svcMgr);
20: }
21:
22: protected String getSchema(Object data, String contentType) {
23: return "";
24: }
25:
26: public String getContentType(Object data)
27: throws RepositoryException {
28: return "message";
29: }
30: }
|