01: package org.obe.event;
02:
03: import org.obe.client.api.model.MIMETypes;
04: import org.obe.spi.service.ServiceManager;
05:
06: import java.util.Properties;
07:
08: /**
09: * @author Adrian Price
10: */
11: public class MIMEDefaultHandler extends AbstractContentHandler {
12: public MIMEDefaultHandler() {
13: }
14:
15: public void init(ServiceManager svcMgr, Properties props) {
16: init(svcMgr);
17: }
18:
19: public String getContentType(Object data) {
20: return MIMETypes.JAVA_OBJECT;
21: }
22:
23: protected String getSchema(Object data, String contentType) {
24: return (data == null ? Object.class : data.getClass())
25: .getName();
26: }
27: }
|