protected final String WEBDB_GIF="1";
protected String imageType="0";
- private Logfile theLog = Logfile.getInstance(MirConfig.getProp("Home")+"log/media.log");
+ private Logfile theLog = Logfile.getInstance(this.getClass().getName());
public byte[] get(Entity ent, Entity mediaTypeEnt)
{
} catch ( IllegalAccessException e) {
theLog.printDebugInfo("method illegal: "+e.toString());
} catch ( InvocationTargetException e) {
- theLog.printDebugInfo("invocation target illegal: "+e.toString());
+ theLog.printDebugInfo("get: invocation target illegal: "+e.toString());
}
{
try {
Class[] params = {byte[].class, String.class};
+ theLog.printDebugInfo("NAME: "+ent.getClass().getName()+" "+
+ mediaTypeEnt.getClass().getName()+" "+uploadData.length+" "+
+ imageType);
Method method = ent.getClass().getMethod("setImage",params);
method.invoke(ent, new Object[] {uploadData, imageType});
} catch ( NoSuchMethodException e) {
theLog.printDebugInfo("method illegal: "+e.toString());
return false;
} catch ( InvocationTargetException e) {
- theLog.printDebugInfo("invocation target illegal: "+e.toString());
+ theLog.printDebugInfo("set: invocation target illegal: "+e.toString());
return false;
}
//deref. -mh
} catch ( IllegalAccessException e) {
theLog.printDebugInfo("method illegal: "+e.toString());
} catch ( InvocationTargetException e) {
- theLog.printDebugInfo("invocation target illegal: "+e.toString());
+ theLog.printDebugInfo("getIcon: invocation target illegal: "+e.toString());
}
return icon_data;