Class PortUtil

java.lang.Object
org.alfresco.util.PortUtil

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

    • PortUtil

      public PortUtil()
  • Method Details

    • 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