Class UriRendering


  • public class UriRendering
    extends java.lang.Object
    • Constructor Detail

      • UriRendering

        public UriRendering()
    • Method Detail

      • renderUri

        public static <R extends RenderingRendering renderUri​(R r,
                                                                Uri value,
                                                                java.nio.charset.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 RenderingRendering renderUriWithoutFragment​(R r,
                                                                               Uri value,
                                                                               java.nio.charset.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 RenderingRendering renderAuthority​(R r,
                                                                      Uri.Authority authority,
                                                                      java.lang.String scheme,
                                                                      java.nio.charset.Charset charset)
      • renderPath

        public static <R extends RenderingRendering renderPath​(R r,
                                                                 Uri.Path path,
                                                                 java.nio.charset.Charset charset,
                                                                 boolean encodeFirstSegmentColons)
      • renderQuery

        public static <R extends RenderingRendering renderQuery​(R r,
                                                                  Uri.Query query,
                                                                  java.nio.charset.Charset charset,
                                                                  akka.parboiled2.CharPredicate keep)
      • encode

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

        public static boolean isAsciiCompatible​(java.nio.charset.Charset cs)