/** * Prints out the message. User can override this method and modify the way * the message is printed. */ protected void printBefore(final ActionRequest request) { StringBuilder message = new StringBuilder(prefixIn); message.append(request.getActionPath()).append(" [").append(request.getActionRuntime().createActionString()).append(']'); out(message.toString()); }
/** * Prints out the message. User can override this method and modify the way * the message is printed. */ protected void printAfter(final ActionRequest request, final long executionTime, final Object result) { StringBuilder message = new StringBuilder(prefixOut); String resultString = StringUtil.toSafeString(result); if (resultString.length() > 70) { resultString = resultString.substring(0, 70); resultString += "..."; } message.append(request.getActionPath()).append(" (") .append(resultString).append(") in ").append(executionTime) .append("ms."); out(message.toString()); }
/** * Prints out the message. User can override this method and modify the way * the message is printed. */ protected void printAfter(ActionRequest request, long executionTime, Object result) { StringBuilder message = new StringBuilder("<----- "); String resultString = StringUtil.toSafeString(result); if (resultString.length() > 70) { resultString = resultString.substring(0, 70); resultString += "..."; } message.append(request.getActionPath()).append(" (").append(resultString); message.append(") in ").append(executionTime).append("ms."); out(message.toString()); }
/** * Prints out the message. User can override this method and modify the way * the message is printed. */ protected void printBefore(ActionRequest request) { StringBuilder message = new StringBuilder("----->"); message.append(request.getActionPath()).append(" [").append(request.getActionConfig().getActionString()).append(']'); out(message.toString()); }
String key = actionRequest.getActionPath(); if (customPath != null) { key += ':' + customPath; if ((target = targetCache.get(key)) == null) { ResultPath resultPath = resultMapper.resolveResultPath(actionRequest.getActionPath(), customPath);