Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Notifier |
|
| 1.0;1 |
1 | /* | |
2 | * This software is licensed under the Apache License, Version 2.0 | |
3 | * (the "License") agreement; you may not use this file except in compliance with | |
4 | * the License. You may obtain a copy of the License at | |
5 | * | |
6 | * http://www.apache.org/licenses/LICENSE-2.0 | |
7 | * | |
8 | * Unless required by applicable law or agreed to in writing, software | |
9 | * distributed under the License is distributed on an "AS IS" BASIS, | |
10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
11 | * See the License for the specific language governing permissions and | |
12 | * limitations under the License. | |
13 | */ | |
14 | package net.admin4j.util.notify; | |
15 | ||
16 | import net.admin4j.config.Configurable; | |
17 | ||
18 | /** | |
19 | * Capable of notifying an administrator. | |
20 | * | |
21 | * @author D. Ashmore | |
22 | * @since 1.0 | |
23 | */ | |
24 | public interface Notifier extends Configurable { | |
25 | ||
26 | /** | |
27 | * Will perfom a notification. | |
28 | * | |
29 | * @param subject | |
30 | * @param message | |
31 | */ | |
32 | public void notify(String subject, String message); | |
33 | ||
34 | /** | |
35 | * Indicates if this notifier supports HTML-formatted messages. | |
36 | * | |
37 | * @return | |
38 | */ | |
39 | public boolean supportsHtml(); | |
40 | ||
41 | /** | |
42 | * Indicates if this notifier support SMS, which usually infers a restricted | |
43 | * message size. | |
44 | * | |
45 | * @return | |
46 | */ | |
47 | public boolean supportsSMS(); | |
48 | ||
49 | } |