Class PortValidator
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.Validator
-
- com.sun.enterprise.admin.servermgmt.PortValidator
-
public class PortValidator extends Validator
This validator ensures that the specified port is not in use.- Since:
- August 11, 2003, 7:44 PM
- Author:
- kebbs
-
-
Constructor Summary
Constructors Constructor Description PortValidator(String name)
Creates a new instance of PortValidator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(Object obj)
Validates the given Port.
-
-
-
Constructor Detail
-
PortValidator
public PortValidator(String name)
Creates a new instance of PortValidator- Parameters:
name
- Name of an entry that is used in case of validation errors. If the name is null "" is used instead.
-
-
Method Detail
-
validate
public void validate(Object obj) throws InvalidConfigException
Validates the given Port.- Overrides:
validate
in classValidator
- Parameters:
obj
- Must be the absolute path of the File that will be validated.- Throws:
InvalidConfigException
-
-