Class PortUtil


  • public class PortUtil
    extends Object
    Alfresco port-related utility functions.
    Author:
    abalmus
    • Constructor Detail

      • PortUtil

        public PortUtil()
    • Method Detail

      • checkPort

        public static void checkPort​(int port,
                                     String host)
                              throws IOException
        Check if specified port is free.
        Parameters:
        port - Port number to check.
        host - A local address to bind to; if null, "" or "0.0.0.0" then all local addresses will be considered.
        Throws:
        IOException