Output out = new Output(buf);
out.writeString(onCueOrOnMeta);
out.writeMap(params);
buf.flip();
return new Notify(buf);
} else if ("onFI".equals(setData)) {
// the onFI request contains 2 items relative to the publishing client application
// sd = system date (12-07-2011)
// st = system time (09:11:33.387)
byte object = input.readDataType();
log.debug("onFI params type: {}", object);
Map<Object, Object> params;
if (object == DataTypes.CORE_MAP) {
// the params are sent as a Mixed-Array
params = (Map<Object, Object>) input.readMap(null);
} else {
// read the params as a standard object
params = (Map<Object, Object>) input.readObject(Object.class);
}
log.debug("onFI params: {}", params.toString());
} else {
log.info("Unhandled request: {}", setData);
if (log.isDebugEnabled()) {
byte object = input.readDataType();
log.debug("Params type: {}", object);
if (object == DataTypes.CORE_MAP) {
Map<Object, Object> params = (Map<Object, Object>) input.readMap(null);
log.debug("Params: {}", params.toString());
} else {
log.debug("The unknown request was did not provide a parameter map");
}
}
}
}
return new Notify(in.asReadOnlyBuffer());
}