Class DomainPortValidator
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.domain.DomainPortValidator
-
public class DomainPortValidator extends Object
Checks that port is free and that the current user has permission to use it
-
-
Field Summary
Fields Modifier and Type Field Description static int
PORT_MAX_VAL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validateAndSetPorts()
Validates the port.
-
-
-
Field Detail
-
PORT_MAX_VAL
public static final int PORT_MAX_VAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateAndSetPorts
public void validateAndSetPorts() throws DomainException
Validates the port. If custom port value is not given then it retrieves its default value. If the port is already been occupied then it picks randomly available port value.- Throws:
DomainException
- If any exception occurs in validation.
-
-