protected static Properties initMime() { Properties p = new Properties(); try { p.load(FileServiceHelper.class.getClassLoader().getResourceAsStream("mime.properties")); } catch (Exception ex) { Log.debug("MIME map can't be loaded:" + ex); } return p; }
static public void debug(String message, Throwable ex, Object p1) { if (DEBUG) { debug(processMessage(message, p1, null, null, null, null), ex); } }
static public void debug(String message, Throwable ex, Object p1, Object p2, Object p3) { if (DEBUG) { debug(processMessage(message, p1, p2, p3, null, null), ex); } }
static public void debug(String message, Throwable ex, Object p1, Object p2, Object p3, Object p4, Object p5) { if (DEBUG) { debug(processMessage(message, p1, p2, p3, p4, p5), ex); } }
public KevoreeHttpRequest resolveRequest(Object param) { Log.debug("KevoreeHttpRequest handler triggered"); if (param instanceof KevoreeHttpRequest) { return handler.check((KevoreeHttpRequest) param); } else { return null; } }
static public void debug(String message, Throwable ex, Object p1, Object p2) { if (DEBUG) { debug(processMessage(message, p1, p2, null, null, null), ex); } }
static public void debug(String message, Object p1) { if (DEBUG) { debug(processMessage(message, p1, null, null, null, null), null); } }
static public void debug(String message, Object p1, Object p2, Object p3, Object p4) { if (DEBUG) { debug(processMessage(message, p1, p2, p3, p4, null), null); } }
public boolean execute() { try { bootstrap.removeDeployUnit(du); //TODO cleanup links return true; }catch (Exception e) { Log.debug("error ", e); return false; } }
private void writeFile(File file, String data) { try { FileUtils.writeStringToFile(file, data, "UTF-8"); Log.debug("FileSystemResolver cached {}", file.getAbsolutePath()); } catch (Exception e) { Log.trace("FileSystemResolver failed to cache {} (ignored)", e, file.getAbsolutePath()); } }
static public void debug(String message, Object p1, Object p2) { if (DEBUG) { debug(processMessage(message, p1, p2, null, null, null), null); } }
static public void debug(String message, Object p1, Object p2, Object p3, Object p4, Object p5) { if (DEBUG) { debug(processMessage(message, p1, p2, p3, p4, p5), null); } }
static public void debug(String message, Throwable ex, Object p1, Object p2, Object p3, Object p4) { if (DEBUG) { debug(processMessage(message, p1, p2, p3, p4, null), ex); } }
static public void debug(String message, Object p1, Object p2, Object p3) { if (DEBUG) { debug(processMessage(message, p1, p2, p3, null, null), null); } }
@Start public void startPage() { handler.initRegex(this.getDictionary().get("urlpattern").toString()); Log.debug("Abstract page start"); }
@Override @Start public void startPage() { if (!this.getDictionary().get("urlpattern").toString().endsWith("**")) { this.getDictionary().put("urlpattern", this.getDictionary().get("urlpattern").toString() + "**"); Log.debug("Parent abstract page start with pattern = {}", this.getDictionary().get("urlpattern").toString()); } super.startPage(); }
public void forward(Object request ) { if (isPortBinded("forward")) { getPortByName("forward", MessagePort.class).process(request); } else { Log.debug("Unable to forward request because the forward port is not bind for {}", getName()); } }
@Stop @Override public void stopNode() { Log.debug("Stopping node type of {}", this.getName()); getModelService().unregisterModelListener(this); kompareBean = null; mapper = null; //Cleanup the local runtime KevoreeDeployManager.instance$.clearAll(this); }
@Start @Override public void startNode() { Log.debug("Starting node type of {}", this.getName()); mapper = new CommandMapper(); preTime = System.currentTimeMillis(); getModelService().registerModelListener(this); kompareBean = new KevoreeKompareBean(); mapper.setNodeType(this); updateNode(); }
private void debug(Value value) { Instance instance = (Instance) value.eContainer().eContainer(); DictionaryAttribute attr = instance.getTypeDefinition().getDictionaryType().findAttributesByID(value.getName()); if (attr.getFragmentDependant()) { Log.debug("Update param for {}.{}/{} = '{}'", instance.getName(), value.getName(), ((NamedElement) value.eContainer()).getName(), value.getValue()); } else { Log.debug("Update param for {}.{} = '{}'", instance.getName(), value.getName(), value.getValue()); } }