|
From: <bu...@us...> - 2007-09-21 16:56:50
|
Revision: 5050
http://dcm4che.svn.sourceforge.net/dcm4che/?rev=5050&view=rev
Author: bubbag
Date: 2007-09-21 09:56:45 -0700 (Fri, 21 Sep 2007)
Log Message:
-----------
[#DCMEE-547] added ability to bind DCM server socket to a specific address
Modified Paths:
--------------
dcm4chee/dcm4chee-arc/trunk/dcm4jboss-sar/src/etc/conf/xmdesc/dcm4chee-dcmsrv-xmbean.xml
dcm4chee/dcm4chee-arc/trunk/dcm4jboss-sar/src/java/org/dcm4chex/archive/dcm/DcmServerService.java
Modified: dcm4chee/dcm4chee-arc/trunk/dcm4jboss-sar/src/etc/conf/xmdesc/dcm4chee-dcmsrv-xmbean.xml
===================================================================
--- dcm4chee/dcm4chee-arc/trunk/dcm4jboss-sar/src/etc/conf/xmdesc/dcm4chee-dcmsrv-xmbean.xml 2007-09-21 16:46:10 UTC (rev 5049)
+++ dcm4chee/dcm4chee-arc/trunk/dcm4jboss-sar/src/etc/conf/xmdesc/dcm4chee-dcmsrv-xmbean.xml 2007-09-21 16:56:45 UTC (rev 5050)
@@ -32,6 +32,17 @@
</descriptors>
</attribute>
<attribute access="read-write"
+ getMethod="getLocalAddress"
+ setMethod="setLocalAddress">
+ <description>Local interface IP address to listen for TCP communication. 0.0.0.0 indicates all active interfaces.
+ </description>
+ <name>LocalAddress</name>
+ <type>java.lang.String</type>
+ <descriptors>
+ <value value="0.0.0.0" />
+ </descriptors>
+ </attribute>
+ <attribute access="read-write"
getMethod="getProtocolName"
setMethod="setProtocolName">
<!-- Security -->
Modified: dcm4chee/dcm4chee-arc/trunk/dcm4jboss-sar/src/java/org/dcm4chex/archive/dcm/DcmServerService.java
===================================================================
--- dcm4chee/dcm4chee-arc/trunk/dcm4jboss-sar/src/java/org/dcm4chex/archive/dcm/DcmServerService.java 2007-09-21 16:46:10 UTC (rev 5049)
+++ dcm4chee/dcm4chee-arc/trunk/dcm4jboss-sar/src/java/org/dcm4chex/archive/dcm/DcmServerService.java 2007-09-21 16:56:45 UTC (rev 5050)
@@ -104,6 +104,14 @@
dcmsrv.setPort(port);
}
+ public String getLocalAddress() {
+ return dcmsrv.getLocalAddress();
+ }
+
+ public void setLocalAddress(String localAddress) {
+ dcmsrv.setLocalAddress(localAddress);
+ }
+
public String getProtocolName() {
return protocol.toString();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|