code: public boolean isPortDefault() {
          return (PROTOCOL_HTTPS.equalsIgnoreCase(protocol)
                  && port == DEFAULT_HTTPS_PORT)
                  || (PROTOCOL_HTTP.equalsIgnoreCase(protocol)
                  && port == DEFAULT_HTTP_PORT);
      }
docs: Whether this URL uses the default port for the protocol.  The default
  port is 80 for "http" protocol, and 443 for "https". Other protocols
  are not supported and this method will always return false
  for them.
  @return <code>true</code> if the URL is using the default port.
  @since 1.8.0