Module com.github.rvesse.airline
Annotation Type Port
-
@Retention(RUNTIME) @Target(FIELD) public @interface Port
Annotation 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 thePortRange
orPortRanges
annotations instead.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description PortType[]
acceptablePorts
The acceptable port types, defaults toPortType#OS_ALLOCATED
,PortType#USER
andPortType#DYNAMIC
-
-
-
Element Detail
-
acceptablePorts
PortType[] acceptablePorts
The acceptable port types, defaults toPortType#OS_ALLOCATED
,PortType#USER
andPortType#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}
-
-