serge 02/02/26 21:06:35
Modified: src/java/org/apache/james/remotemanager RemoteManager.java
Log:
Patch from Eung-ju Park <[EMAIL PROTECTED]> to use getValueAsBoolean to make code
more readable.
Revision Changes Path
1.3 +9 -7
jakarta-james/src/java/org/apache/james/remotemanager/RemoteManager.java
Index: RemoteManager.java
===================================================================
RCS file:
/home/cvs/jakarta-james/src/java/org/apache/james/remotemanager/RemoteManager.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- RemoteManager.java 18 Jan 2002 02:48:37 -0000 1.2
+++ RemoteManager.java 27 Feb 2002 05:06:35 -0000 1.3
@@ -26,7 +26,7 @@
* @author Federico Barbieri <[EMAIL PROTECTED]>
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
*/
-public class RemoteManager
+public class RemoteManager
extends AbstractService {
protected ConnectionHandlerFactory createFactory()
@@ -39,21 +39,23 @@
m_port = configuration.getChild( "port" ).getValueAsInteger( 4554 );
- try
- {
+ try
+ {
final String bindAddress = configuration.getChild( "bind" ).getValue(
null );
if( null != bindAddress )
{
- m_bindTo = InetAddress.getByName( bindAddress );
+ m_bindTo = InetAddress.getByName( bindAddress );
}
}
- catch( final UnknownHostException unhe )
+ catch( final UnknownHostException unhe )
{
throw new ConfigurationException( "Malformed bind parameter", unhe );
}
- final String useTLS = configuration.getChild( "useTLS" ).getValue( "" );
- if( useTLS.equals( "TRUE" ) ) m_serverSocketType = "ssl";
+ final boolean useTLS = configuration.getChild( "useTLS"
).getValueAsBoolean( false );
+ if( useTLS ) {
+ m_serverSocketType = "ssl";
+ }
super.configure( configuration.getChild( "handler" ) );
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>