Class JavaUri

java.lang.Object
akka.http.javadsl.model.Uri
akka.http.impl.model.JavaUri
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public class JavaUri extends Uri implements scala.Product, Serializable
INTERNAL API
See Also:
  • Constructor Details

    • JavaUri

      public JavaUri(Uri uri)
  • Method Details

    • apply

      public abstract static R apply(T1 v1)
    • uri

      public Uri uri()
    • isRelative

      public boolean isRelative()
      Description copied from class: Uri
      Returns if this is a relative Uri.
      Specified by:
      isRelative in class Uri
    • isAbsolute

      public boolean isAbsolute()
      Description copied from class: Uri
      Returns if this is an absolute Uri.
      Specified by:
      isAbsolute in class Uri
    • isEmpty

      public boolean isEmpty()
      Description copied from class: Uri
      Returns if this is an empty Uri.
      Specified by:
      isEmpty in class Uri
    • scheme

      public String scheme()
      Description copied from class: Uri
      Returns the scheme of this Uri.
      Specified by:
      scheme in class Uri
    • host

      public Host host()
      Description copied from class: Uri
      Returns the Host of this Uri.
      Specified by:
      host in class Uri
    • port

      public int port()
      Description copied from class: Uri
      Returns the port of this Uri.
      Specified by:
      port in class Uri
    • userInfo

      public String userInfo()
      Description copied from class: Uri
      Returns the user-info of this Uri.
      Specified by:
      userInfo in class Uri
    • path

      public String path()
      Description copied from class: Uri
      Returns a String representation of the path of this Uri.
      Specified by:
      path in class Uri
    • getScheme

      public String getScheme()
      Description copied from class: Uri
      Returns the scheme of this instance
      Specified by:
      getScheme in class Uri
    • getHost

      public Host getHost()
      Description copied from class: Uri
      Returns the host of this instance
      Specified by:
      getHost in class Uri
    • getPort

      public int getPort()
      Description copied from class: Uri
      Returns the port of this instance
      Specified by:
      getPort in class Uri
    • getUserInfo

      public String getUserInfo()
      Description copied from class: Uri
      Returns the user info of this instance
      Specified by:
      getUserInfo in class Uri
    • getPathString

      public String getPathString()
      Description copied from class: Uri
      Returns the path of this instance
      Specified by:
      getPathString in class Uri
    • asScala

      public Uri asScala()
      Description copied from class: Uri
      Returns the Scala DSL representation of this Uri.
      Specified by:
      asScala in class Uri
    • pathSegments

      public Iterable<String> pathSegments()
      Description copied from class: Uri
      Returns the path segments of this Uri as an Iterable.
      Specified by:
      pathSegments in class Uri
    • rawQueryString

      public Optional<String> rawQueryString()
      Description copied from class: Uri
      Returns an undecoded String representation of the query of this Uri.
      Specified by:
      rawQueryString in class Uri
    • queryString

      public Optional<String> queryString(Charset charset)
      Description copied from class: Uri
      Returns a decoded String representation of the query of this Uri.
      Specified by:
      queryString in class Uri
    • query

      public Query query()
      Description copied from class: Uri
      Returns the parsed Query instance of this Uri.
      Specified by:
      query in class Uri
    • query

      public Query query(Charset charset, Uri.ParsingMode mode)
      Description copied from class: Uri
      Returns the parsed Query instance of this Uri using the given charset and parsing mode.
      Specified by:
      query in class Uri
    • fragment

      public Optional<String> fragment()
      Description copied from class: Uri
      Returns the fragment part of this Uri.
      Specified by:
      fragment in class Uri
    • t

      public Uri t(scala.Function1<Uri,Uri> f)
    • scheme

      public Uri scheme(String scheme)
      Description copied from class: Uri
      Returns a copy of this instance with a new scheme.
      Specified by:
      scheme in class Uri
    • host

      public Uri host(Host host)
      Description copied from class: Uri
      Returns a copy of this instance with a new Host.
      Specified by:
      host in class Uri
    • host

      public Uri host(String host)
      Description copied from class: Uri
      Returns a copy of this instance with a new host.
      Specified by:
      host in class Uri
    • port

      public Uri port(int port)
      Description copied from class: Uri
      Returns a copy of this instance with a new port.
      Specified by:
      port in class Uri
    • userInfo

      public Uri userInfo(String userInfo)
      Description copied from class: Uri
      Returns a copy of this instance with new user-info.
      Specified by:
      userInfo in class Uri
    • path

      public Uri path(String path)
      Description copied from class: Uri
      Returns a copy of this instance with a new path.
      Specified by:
      path in class Uri
    • toRelative

      public Uri toRelative()
      Description copied from class: Uri
      Returns a copy of this instance that is relative.
      Specified by:
      toRelative in class Uri
    • rawQueryString

      public Uri rawQueryString(String rawQuery)
      Description copied from class: Uri
      Returns a copy of this instance with a new query. Characters that are not within the range described at https://tools.ietf.org/html/rfc3986#section-3.4 should be percent-encoded. Characters that are in that range may or may not be percent-encoded, and depending on how the query string is parsed this might be relevant: for example, when interpreting the query string as 'key=value' pairs you could use the percent-encoded '=' ('%22) to include a '=' in the key or value. When characters are encountered that are outside of the RFC3986 range they are automatically percent-encoded, but be aware that relying on this is usually a programming error.
      Specified by:
      rawQueryString in class Uri
    • rawQueryString

      public Uri rawQueryString(String rawQuery, boolean strict)
      Description copied from class: Uri
      Returns a copy of this instance with a new query. Characters that are not within the range described at https://tools.ietf.org/html/rfc3986#section-3.4 should be percent-encoded. Characters that are in that range may or may not be percent-encoded, and depending on how the query string is parsed this might be relevant: for example, when interpreting the query string as 'key=value' pairs you could use the percent-encoded '=' ('%22) to include a '=' in the key or value.
      Specified by:
      rawQueryString in class Uri
      strict - depending on the 'strict' flag, characters outside of the range allowed by RFC3986 will either cause a `IllegalUriException` or be automatically percent-encoded. Be aware that relying on automatic percent-encoding is usually a programming error.
    • query

      public Uri query(Query query)
      Description copied from class: Uri
      Returns a copy of this instance with a new query.
      Specified by:
      query in class Uri
    • addPathSegment

      public Uri addPathSegment(String segment)
      Description copied from class: Uri
      Returns a copy of this instance with a path segment added at the end.
      Specified by:
      addPathSegment in class Uri
    • fragment

      public Uri fragment(Optional<String> fragment)
      Description copied from class: Uri
      Returns a copy of this instance with a new optional fragment.
      Specified by:
      fragment in class Uri
    • fragment

      public Uri fragment(String fragment)
      Description copied from class: Uri
      Returns a copy of this instance with a new fragment.
      Specified by:
      fragment in class Uri
    • toString

      public String toString()
      Overrides:
      toString in class Object