Package akka.http.scaladsl.model
Class UriRendering
- java.lang.Object
-
- akka.http.scaladsl.model.UriRendering
-
public class UriRendering extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UriRendering.AuthorityRenderer$
static class
UriRendering.HostRenderer$
static class
UriRendering.PathRenderer$
static class
UriRendering.QueryRenderer$
static class
UriRendering.UriRenderer$
-
Constructor Summary
Constructors Constructor Description UriRendering()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Rendering
encode(Rendering r, java.lang.String string, java.nio.charset.Charset charset, akka.parboiled2.CharPredicate keep, boolean replaceSpaces)
static boolean
isAsciiCompatible(java.nio.charset.Charset cs)
static <R extends Rendering>
RenderingrenderAuthority(R r, Uri.Authority authority, Uri.Path path, java.lang.String scheme, java.nio.charset.Charset charset)
static <R extends Rendering>
RenderingrenderAuthority(R r, Uri.Authority authority, java.lang.String scheme, java.nio.charset.Charset charset)
static <R extends Rendering>
RenderingrenderPath(R r, Uri.Path path, java.nio.charset.Charset charset, boolean encodeFirstSegmentColons)
static <R extends Rendering>
RenderingrenderQuery(R r, Uri.Query query, java.nio.charset.Charset charset, akka.parboiled2.CharPredicate keep)
static <R extends Rendering>
RenderingrenderUri(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.static <R extends Rendering>
RenderingrenderUriWithoutFragment(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.
-
-
-
Method Detail
-
renderUri
public static <R extends Rendering> Rendering 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 Rendering> Rendering 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 Rendering> Rendering renderAuthority(R r, Uri.Authority authority, java.lang.String scheme, java.nio.charset.Charset charset)
-
renderAuthority
public static <R extends Rendering> Rendering renderAuthority(R r, Uri.Authority authority, Uri.Path path, java.lang.String scheme, java.nio.charset.Charset charset)
-
renderPath
public static <R extends Rendering> Rendering renderPath(R r, Uri.Path path, java.nio.charset.Charset charset, boolean encodeFirstSegmentColons)
-
renderQuery
public static <R extends Rendering> Rendering 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)
-
-