aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/notification/NotificationFormatter.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-07 15:04:59 +0500
committerAbyss777 <abyss@fox5.ru>2016-12-07 15:04:59 +0500
commit23280c00e39bc1a7a899a6e2d5dda230f28a12b3 (patch)
treeb50cd6f8a4a38fb3d0bc73b8ee017d3f92c880a5 /src/org/traccar/notification/NotificationFormatter.java
parent6c64c6e87a25b4d2339f2fd8d83fa4bc36d461f2 (diff)
downloadtrackermap-server-23280c00e39bc1a7a899a6e2d5dda230f28a12b3.tar.gz
trackermap-server-23280c00e39bc1a7a899a6e2d5dda230f28a12b3.tar.bz2
trackermap-server-23280c00e39bc1a7a899a6e2d5dda230f28a12b3.zip
- Extract MailMessage class
- Move getting "unknown.vm" to catch
Diffstat (limited to 'src/org/traccar/notification/NotificationFormatter.java')
-rw-r--r--src/org/traccar/notification/NotificationFormatter.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/org/traccar/notification/NotificationFormatter.java b/src/org/traccar/notification/NotificationFormatter.java
index 5182f9b58..2d580922c 100644
--- a/src/org/traccar/notification/NotificationFormatter.java
+++ b/src/org/traccar/notification/NotificationFormatter.java
@@ -29,21 +29,6 @@ import org.traccar.reports.ReportUtils;
public final class NotificationFormatter {
- public static class MailMessage {
- private String subject;
- private String body;
- public MailMessage(String subject, String body) {
- this.subject = subject;
- this.body = body;
- }
- public String getSubject() {
- return subject;
- }
- public String getBody() {
- return body;
- }
- }
-
private NotificationFormatter() {
}
@@ -66,8 +51,6 @@ public final class NotificationFormatter {
template = Context.getVelocityEngine().getTemplate(event.getType() + ".vm");
} catch (ResourceNotFoundException error) {
Log.warning(error);
- }
- if (template == null) {
template = Context.getVelocityEngine().getTemplate("unknown.vm");
}