You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by se...@apache.org on 2002/02/27 06:06:35 UTC

cvs commit: jakarta-james/src/java/org/apache/james/remotemanager RemoteManager.java

serge       02/02/26 21:06:35

  Modified:    src/java/org/apache/james/remotemanager RemoteManager.java
  Log:
  Patch from Eung-ju Park <co...@apache.org> 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 <sc...@pop.systemy.it>
    * @author <a href="mailto:donaldp@apache.org">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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>