Class UriRendering

java.lang.Object
akka.http.scaladsl.model.UriRendering

public class UriRendering extends Object
  • Constructor Details

    • UriRendering

      public UriRendering()
  • Method Details

    • renderUri

      public static <R extends Rendering> Rendering renderUri(R r, Uri value, Charset charset)
      Renders this Uri into the given Renderer as defined by http://tools.ietf.org/html/rfc3986. All Uri components are encoded and joined as required by the spec. The given charset is used to produce percent-encoded representations of potentially existing non-ASCII characters in the different components.
      Parameters:
      r - (undocumented)
      value - (undocumented)
      charset - (undocumented)
      Returns:
      (undocumented)
    • renderUriWithoutFragment

      public static <R extends Rendering> Rendering renderUriWithoutFragment(R r, Uri value, Charset charset)
      Renders this Uri (without the fragment component) into the given Renderer as defined by http://tools.ietf.org/html/rfc3986. All Uri components are encoded and joined as required by the spec. The given charset is used to produce percent-encoded representations of potentially existing non-ASCII characters in the different components.
      Parameters:
      r - (undocumented)
      value - (undocumented)
      charset - (undocumented)
      Returns:
      (undocumented)
    • renderAuthority

      public static <R extends Rendering> Rendering renderAuthority(R r, Uri.Authority authority, String scheme, Charset charset)
    • renderAuthority

      public static <R extends Rendering> Rendering renderAuthority(R r, Uri.Authority authority, Uri.Path path, String scheme, Charset charset)
    • renderPath

      public static <R extends Rendering> Rendering renderPath(R r, Uri.Path path, Charset charset, boolean encodeFirstSegmentColons)
    • renderQuery

      public static <R extends Rendering> Rendering renderQuery(R r, Uri.Query query, Charset charset, akka.parboiled2.CharPredicate keep)
    • encode

      public static Rendering encode(Rendering r, String string, Charset charset, akka.parboiled2.CharPredicate keep, boolean replaceSpaces)
    • isAsciiCompatible

      public static boolean isAsciiCompatible(Charset cs)