Module com.github.rvesse.airline
Annotation Type Port
-
@Retention(RUNTIME) @Target(FIELD) public @interface PortAnnotation that indicates that an option/argument denotes a port number and its value should be restricted as such to a specific set of port classes as defined byPortType. If you want to restrict to more specific ranges use thePortRangeorPortRangesannotations instead.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description PortType[]acceptablePortsThe acceptable port types, defaults toPortType#OS_ALLOCATED,PortType#USERandPortType#DYNAMIC
-
-
-
Element Detail
-
acceptablePorts
PortType[] acceptablePorts
The acceptable port types, defaults toPortType#OS_ALLOCATED,PortType#USERandPortType#DYNAMIC- Returns:
- Acceptable port types
- Default:
- {com.github.rvesse.airline.annotations.restrictions.PortType.OS_ALLOCATED, com.github.rvesse.airline.annotations.restrictions.PortType.USER, com.github.rvesse.airline.annotations.restrictions.PortType.DYNAMIC}
-
-