org.glassfish.config.support.datatypes
Class Port
java.lang.Object
org.glassfish.config.support.datatypes.Port
- All Implemented Interfaces:
- org.jvnet.hk2.config.DataType
@Service
public final class Port
- extends Object
- implements org.jvnet.hk2.config.DataType
Represents a network port on a machine. It's modeled as a functional class.
- Author:
- केदार (km@dev.java.net)
|
Constructor Summary |
Port()
|
|
Method Summary |
void |
validate(String value)
Checks if given string represents a port. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Port
public Port()
validate
public void validate(String value)
throws org.jvnet.hk2.config.ValidationException
- Checks if given string represents a port. Does not allow any value other
than those between 0 and 65535 (both inclusive).
- Specified by:
validate in interface org.jvnet.hk2.config.DataType
- Parameters:
value - represents the value of the port.
- Throws:
org.jvnet.hk2.config.ValidationException - if the value does not represent
integer value.
Copyright © 2012 GlassFish Community. All Rights Reserved.