56 |
|
* and then passing them off to handler processes to deal with. |
57 |
|
*/ |
58 |
|
public void run(){ |
59 |
+ |
// get our ACL from the configuration |
60 |
+ |
ACL acl = null; |
61 |
+ |
try { |
62 |
+ |
String stringACL = ConfigurationProxy.getInstance().getProperty("ClientInterface", "ClientInterface.TCPControlChannelACL"); |
63 |
+ |
acl = new ACL(stringACL); |
64 |
+ |
} |
65 |
+ |
catch(PropertyNotFoundException e) { |
66 |
+ |
_logger.write(toString(), Logger.WARNING, "No ACL found for ClientInterface (control channel listener): " + e); |
67 |
+ |
} |
68 |
+ |
|
69 |
|
// get our port |
70 |
|
int portNum; |
71 |
|
try { |
84 |
|
boolean run = true; |
85 |
|
try{ |
86 |
|
// Setup the ServerSocket so that clients can connect |
87 |
< |
listenPort = new ServerSocket(portNum); |
87 |
> |
// use an ACLServerSocket if we have an ACL |
88 |
> |
if(acl != null) { |
89 |
> |
listenPort = new ACLServerSocket(acl, portNum); |
90 |
> |
} |
91 |
> |
else { |
92 |
> |
listenPort = new ServerSocket(portNum); |
93 |
> |
} |
94 |
|
} |
95 |
|
catch(IOException e){ |
96 |
|
} |