public UrlBuilder withPort(String port) {
        if (port == null || port.isEmpty()) {
            this.port = null;
        } else {
            with(port, UrlTokenizerState.PORT);
        }
        return this;
    }
public UrlBuilder withPort ( String port ) { if ( port == null || port . isEmpty ( ) ) { this . port = null ; } else { with ( port , UrlTokenizerState . PORT ) ; } return this ; }
Set the port that will be used to build the final URL.
@param port The port that will be used to build the final URL.
@return This UrlBuilder so that multiple setters can be chained together.