package com.dianping.cat.report.task.alert.sender.decorator;

import com.dianping.cat.report.task.alert.AlertConstants;

public class FrontEndExceptionDecorator extends ExceptionDecorator {

	public static final String ID = AlertConstants.FRONT_END_EXCEPTION;

	@Override
	public String getId() {
		return ID;
	}

	@Override
	protected String buildContactInfo(String domainName) {
		return "";
	}

}

@@ -66,247 +66,1014 @@
 ort 
-com.dianping.cat.report.task.alert.AlertConstants;%0A%0Apublic class FrontEndExceptionDecorator extends ExceptionDecorator %7B%0A%0A%09public static final String ID = AlertConstants.FRONT_END_EXCEPTION;%0A%0A%09@Override%0A%09public String getId() %7B%0A%09%09return ID
+java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport com.dianping.cat.Constants;%0Aimport com.dianping.cat.report.task.alert.AlertConstants;%0Aimport com.dianping.cat.report.task.alert.sender.AlertEntity;%0A%0Apublic class FrontEndExceptionDecorator extends ExceptionDecorator %7B%0A%0A%09public static final String ID = AlertConstants.FRONT_END_EXCEPTION;%0A%0A%09@Override%0A%09public String getId() %7B%0A%09%09return ID;%0A%09%7D%0A%0A%09@Override%0A%09public String generateTitle(AlertEntity alert) %7B%0A%09%09StringBuilder sb = new StringBuilder();%0A%09%09sb.append(%22%5BCAT%E5%BC%82%E5%B8%B8%E5%91%8A%E8%AD%A6%5D %5B%E9%A1%B9%E7%9B%AE: %22).append(Constants.FRONT_END).append(%22%5D%22);%0A%09%09return sb.toString();%0A%09%7D%0A%0A%09@Override%0A%09protected Map%3CObject, Object%3E generateExceptionMap(AlertEntity alert) %7B%0A%09%09String domain = Constants.FRONT_END;%0A%09%09String contactInfo = buildContactInfo(domain);%0A%09%09Map%3CObject, Object%3E map = new HashMap%3CObject, Object%3E();%0A%0A%09%09map.put(%22domain%22, domain);%0A%09%09map.put(%22content%22, alert.getContent());%0A%09%09map.put(%22date%22, m_dateFormat.format(alert.getDate()));%0A%09%09map.put(%22contactInfo%22, contactInfo);%0A%0A%09%09return map
 ;%0A%09%7D

modify mail content