KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > messenger > component > ExternalComponentConfiguration


1 package org.jivesoftware.messenger.component;
2
3 /**
4  * Holds the configuration for external components that want to connect to this server. The
5  * configuration specifies if the external component is allowed to connect to the server as well
6  * as the shared secret between the server and the component. If no secret or configuration was
7  * defined then the default shared secret will be used.
8  *
9  * @author Gaston Dombiak
10  */

11 public class ExternalComponentConfiguration {
12
13     private String JavaDoc subdomain;
14
15     private Permission permission;
16
17     private String JavaDoc secret;
18
19     public ExternalComponentConfiguration(String JavaDoc subdomain) {
20         this.subdomain = subdomain;
21     }
22
23     public String JavaDoc getSubdomain() {
24         return subdomain;
25     }
26
27     public Permission getPermission() {
28         return permission;
29     }
30
31     public void setPermission(Permission permission) {
32         this.permission = permission;
33     }
34
35     public String JavaDoc getSecret() {
36         return secret;
37     }
38
39     public void setSecret(String JavaDoc secret) {
40         this.secret = secret;
41     }
42
43     public enum Permission {
44         /**
45          * The XMPP entity is allowed to connect to the server.
46          */

47         allowed,
48
49         /**
50          * The XMPP entity is NOT allowed to connect to the server.
51          */

52         blocked;
53     }
54 }
55
Popular Tags