Class UriHelper

java.lang.Object
io.helidon.nima.webclient.UriHelper

public class UriHelper extends Object
Helper for client URI handling.
  • Method Details

    • create

      public static UriHelper create()
      Create an empty URI helper.
      Returns:
      uri helper
    • create

      public static UriHelper create(URI baseUri, UriQueryWriteable query)
      Create a new helper.
      Parameters:
      baseUri - base URI
      query - query to extract query parmaters into
      Returns:
      uri helper
    • toString

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

      public void resolve(URI uri, UriQueryWriteable query)
      Resolve the provided URI against this URI and extract query from it.
      Parameters:
      uri - URI to use
      query - query to configure from the provided URI
    • scheme

      public String scheme()
      Scheme of this URI.
      Returns:
      scheme
    • authority

      public String authority()
      Authority of this URI.
      Returns:
      authority
    • host

      public String host()
      Host of this URI.
      Returns:
      host
    • port

      public int port()
      Port of this URI.
      Returns:
      port
    • path

      public String path()
      Path of this URI.
      Returns:
      path
    • pathWithQuery

      public String pathWithQuery(UriQuery query)
      Encoded path with query.
      Parameters:
      query - query to use
      Returns:
      string containing encoded path with query