Class BaseUrlValue

java.lang.Object
org.wiremock.url.BaseUrlValue
All Implemented Interfaces:
org.wiremock.stringparser.ParsedString, AbsoluteUri, AbsoluteUrl, BaseUrl, Normalisable<AbsoluteUri>, ServersideAbsoluteUrl, Uri, Url, UrlWithAuthority

public class BaseUrlValue extends Object implements BaseUrl
  • Field Details

    • nonNullAuthority

      protected final Authority nonNullAuthority
    • nonNullScheme

      protected final Scheme nonNullScheme
    • scheme

      protected final @Nullable Scheme scheme
    • authority

      protected final @Nullable Authority authority
    • path

      protected final Path path
    • query

      protected final @Nullable Query query
    • fragment

      protected final @Nullable Fragment fragment
  • Method Details

    • getAuthority

      public Authority getAuthority()
      Description copied from interface: Uri
      Returns the authority component of this URI reference, or null if there is no authority.
      Specified by:
      getAuthority in interface AbsoluteUrl
      Specified by:
      getAuthority in interface Uri
      Specified by:
      getAuthority in interface UrlWithAuthority
      Returns:
      the authority component, or null if absent
    • getScheme

      public Scheme getScheme()
      Description copied from interface: Uri
      Returns the scheme component of this URI, or null if it is a URI Reference and so there is no scheme.
      Specified by:
      getScheme in interface AbsoluteUri
      Specified by:
      getScheme in interface Uri
      Returns:
      the scheme component, or null if absent
    • normalise

      public BaseUrlValue normalise()
      Description copied from interface: Normalisable
      Returns a normalised form of this value.
      Specified by:
      normalise in interface AbsoluteUri
      Specified by:
      normalise in interface Normalisable<NORMALISED extends AbsoluteUri>
      Returns:
      a normalised value
    • isNormalForm

      public boolean isNormalForm()
      Specified by:
      isNormalForm in interface AbsoluteUri
      Specified by:
      isNormalForm in interface Normalisable<NORMALISED extends AbsoluteUri>
    • getPath

      public Path getPath()
      Description copied from interface: Uri
      Returns the path component of this URI reference.
      Specified by:
      getPath in interface Uri
      Returns:
      the path component, never null
    • getQuery

      public @Nullable Query getQuery()
      Description copied from interface: Uri
      Returns the query component of this URI reference, or null if there is no query.
      Specified by:
      getQuery in interface Uri
      Returns:
      the query component, or null if absent
    • getFragment

      public @Nullable Fragment getFragment()
      Description copied from interface: Uri
      Returns the fragment component of this URI reference, or null if there is no fragment.
      Specified by:
      getFragment in interface Uri
      Returns:
      the fragment component, or null if absent
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface org.wiremock.stringparser.ParsedString
      Overrides:
      toString in class Object