Package org.alfresco.util
Class PortUtil
- java.lang.Object
-
- org.alfresco.util.PortUtil
-
public class PortUtil extends java.lang.ObjectAlfresco port-related utility functions.- Author:
- abalmus
-
-
Constructor Summary
Constructors Constructor Description PortUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckPort(int port, java.lang.String host)Check if specified port is free.
-
-
-
Method Detail
-
checkPort
public static void checkPort(int port, java.lang.String host) throws java.io.IOExceptionCheck 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:
java.io.IOException
-
-