diff options
author | Abyss777 <abyss@fox5.ru> | 2016-12-07 15:04:59 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-12-07 15:04:59 +0500 |
commit | 23280c00e39bc1a7a899a6e2d5dda230f28a12b3 (patch) | |
tree | b50cd6f8a4a38fb3d0bc73b8ee017d3f92c880a5 /src/org/traccar/notification/NotificationFormatter.java | |
parent | 6c64c6e87a25b4d2339f2fd8d83fa4bc36d461f2 (diff) | |
download | trackermap-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.java | 17 |
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"); } |