Class NetUtil


  • public class NetUtil
    extends java.lang.Object
    This class provides a set of static methods which perform various utility net operations.
    Since:
    jcms-6.0.0
    Author:
    Olivier Dedieu
    • Constructor Summary

      Constructors 
      Constructor Description
      NetUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getFreePort()
      Returns a free TCP/IP port.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NetUtil

        public NetUtil()
    • Method Detail

      • getFreePort

        public static int getFreePort()
        Returns a free TCP/IP port.
        Returns:
        a free TCP/IP port.
        Since:
        jcms-6.0.0