org.objectweb.carol.rmi.util
Class PortNumber

java.lang.Object
  extended byorg.objectweb.carol.rmi.util.PortNumber

public class PortNumber
extends java.lang.Object

Convert String port number to int and do some check

Author:
Florent Benoit

Method Summary
static int strToint(java.lang.String portStr, java.lang.String propertyName)
          Return port number based on given string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

strToint

public static int strToint(java.lang.String portStr,
                           java.lang.String propertyName)
Return port number based on given string

Parameters:
portStr - port number in stringified format
propertyName - name of the property of the port number in carol.properties file (for error messages)
Returns:
port number (or 0)