Get the current port number, failing if no port is defined. @return a validated port number, in the range [0..65535] @throws IllegalStateException if no port is defined. You can use #withDefaultPort(int) to prevent this from occurring.
()
| 111 | |
| 112 | |
| 113 | public int getPort() { |
| 114 | checkState(hasPort()); |
| 115 | return port; |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Returns the current port number, with a default if no port is defined. |
nothing calls this directly
no test coverage detected