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.
()
| 106 | * to prevent this from occurring. |
| 107 | */ |
| 108 | public int getPort() { |
| 109 | checkState(hasPort()); |
| 110 | return port; |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * Returns the current port number, with a default if no port is defined. |
nothing calls this directly
no test coverage detected