Class Uri

java.lang.Object
io.gatling.http.client.uri.Uri

public final class Uri extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • create

      public static Uri create(String originalUrl)
    • create

      public static Uri create(Uri context, String originalUrl)
    • getQuery

      public String getQuery()
    • getPath

      public String getPath()
    • getUserInfo

      public String getUserInfo()
    • getPort

      public int getPort()
    • getScheme

      public String getScheme()
    • getHost

      public String getHost()
    • getFragment

      public String getFragment()
    • isSecured

      public boolean isSecured()
    • isWebSocket

      public boolean isWebSocket()
    • toJavaNetURI

      public URI toJavaNetURI() throws URISyntaxException
      Throws:
      URISyntaxException
    • getExplicitPort

      public int getExplicitPort()
    • getSchemeDefaultPort

      public int getSchemeDefaultPort()
    • toUrl

      public String toUrl()
    • toFullUrl

      public String toFullUrl()
    • toUrlWithoutQuery

      public String toUrlWithoutQuery()
      Returns:
      [scheme]://[hostname](:[port])/path. Port is omitted if it matches the scheme's default one.
    • getBaseUrl

      public String getBaseUrl()
      Returns:
      [scheme]://[hostname](:[port]). Port is omitted if it matches the scheme's default one.
    • toRelativeUrl

      public String toRelativeUrl()
    • getAuthority

      public String getAuthority()
    • isSameBase

      public boolean isSameBase(Uri other)
    • getNonEmptyPath

      public String getNonEmptyPath()
    • getLastDirectoryPath

      public static String getLastDirectoryPath(String path)
    • getLastDirectoryPath

      public String getLastDirectoryPath()
    • getEncodedQueryParams

      public List<Param> getEncodedQueryParams()
    • withNewScheme

      public Uri withNewScheme(String newScheme)
    • withNewQuery

      public Uri withNewQuery(String newQuery)
    • toString

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

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

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