2
Copyright (C) 2010 Viktor Balazs (CyB)
4
This program is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation, either version 3 of the License, or
7
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program. If not, see <http://www.gnu.org/licenses/>.
17
package hu.dcwatch.interfaces;
20
* @author Viktor Balázs (CyB)
22
public interface Message {
24
* Visszaadja az üzenetet
28
public Object getMessage();
31
* Visszaadja az üzenet címzettjét
33
* @return Az üzenet címzettje
35
public Session getRecipient();
38
* Visszaadja az üzenet küldőjét
40
* @return Az üzenet küldője
42
public Session getSender();
45
* Visszaadja a forrás végpontot
47
* @return A forrás végpont
49
public Endpoint getSource();
52
* Visszaadja a cél végpontot
54
* @return A cél végpont
56
public Endpoint getTarget();
59
* Visszaadja az üzenet típusát
61
* @return Az üzenet típusa
63
public String getType();