public class Uri$
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description | 
|---|---|
| static Uri$ | MODULE$Static reference to the singleton instance of this Scala object. | 
| Constructor and Description | 
|---|
| Uri$() | 
| Modifier and Type | Method and Description | 
|---|---|
| Uri | apply(org.parboiled2.ParserInput input)Parses a valid URI string into a normalized URI reference as defined
 by http://tools.ietf.org/html/rfc3986#section-4.1. | 
| Uri | apply(org.parboiled2.ParserInput input,
     java.nio.charset.Charset charset,
     Uri.ParsingMode mode)Parses a valid URI string into a normalized URI reference as defined
 by http://tools.ietf.org/html/rfc3986#section-4.1. | 
| Uri | apply(org.parboiled2.ParserInput input,
     Uri.ParsingMode mode)Parses a valid URI string into a normalized URI reference as defined
 by http://tools.ietf.org/html/rfc3986#section-4.1. | 
| Uri | apply(java.lang.String input)Parses a valid URI string into a normalized URI reference as defined
 by http://tools.ietf.org/html/rfc3986#section-4.1. | 
| Uri | apply(java.lang.String scheme,
     Uri.Authority authority,
     Uri.Path path,
     scala.Option<java.lang.String> queryString,
     scala.Option<java.lang.String> fragment)Creates a new Uri instance from the given components. | 
| Uri.Path | collapseDotSegments(Uri.Path path) | 
| Uri | create(java.lang.String scheme,
      java.lang.String userinfo,
      Uri.Host host,
      int port,
      Uri.Path path,
      scala.Option<java.lang.String> queryString,
      scala.Option<java.lang.String> fragment) | 
| Uri | create(java.lang.String scheme,
      Uri.Authority authority,
      Uri.Path path,
      scala.Option<java.lang.String> queryString,
      scala.Option<java.lang.String> fragment) | 
| Uri | createUnsafe(java.lang.String scheme,
            Uri.Authority authority,
            Uri.Path path,
            scala.Option<java.lang.String> queryString,
            scala.Option<java.lang.String> fragment)'Unsafe' in the sense that queryString validation must already have been done. | 
| java.lang.String | decode(java.lang.String string,
      java.nio.charset.Charset charset) | 
| java.lang.String | decode(java.lang.String string,
      java.nio.charset.Charset charset,
      int ix,
      java.lang.StringBuilder sb) | 
| Uri | effectiveHttpRequestUri(java.lang.String scheme,
                       Uri.Host host,
                       int port,
                       Uri.Path path,
                       scala.Option<java.lang.String> query,
                       scala.Option<java.lang.String> fragment,
                       boolean securedConnection,
                       Uri.Host hostHeaderHost,
                       int hostHeaderPort,
                       Uri.Authority defaultAuthority)Converts a set of URI components to an "effective HTTP request URI" as defined by
 http://tools.ietf.org/html/rfc7230#section-5.5. | 
| Uri | effectiveRequestUri(java.lang.String scheme,
                   Uri.Host host,
                   int port,
                   Uri.Path path,
                   scala.Option<java.lang.String> query,
                   scala.Option<java.lang.String> fragment,
                   java.lang.String defaultScheme,
                   Uri.Host hostHeaderHost,
                   int hostHeaderPort,
                   Uri.Authority defaultAuthority)Converts a set of URI components to an "effective request URI" as defined by
 http://tools.ietf.org/html/rfc7230#section-5.5. | 
| scala.runtime.Nothing$ | fail(java.lang.String summary,
    java.lang.String detail) | 
| Uri | from(java.lang.String scheme,
    java.lang.String userinfo,
    java.lang.String host,
    int port,
    java.lang.String path,
    scala.Option<java.lang.String> queryString,
    scala.Option<java.lang.String> fragment,
    Uri.ParsingMode mode)Creates a new Uri instance from the given components. | 
| java.lang.String | httpScheme(boolean securedConnection) | 
| java.lang.String | normalize(org.parboiled2.ParserInput uri,
         java.nio.charset.Charset charset,
         Uri.ParsingMode mode)Normalizes the given URI string by performing the following normalizations:
  - the  schemeandhostcomponents are converted to lowercase
  - a potentially existingportcomponent is removed if it matches one of the defined default ports for the scheme
  - percent-encoded octets are decoded if allowed, otherwise they are converted to uppercase hex notation
  -. | 
| int | normalizePort(int port,
             java.lang.String scheme) | 
| java.lang.String | normalizeScheme(java.lang.String scheme) | 
| Uri | parseAbsolute(org.parboiled2.ParserInput input,
             java.nio.charset.Charset charset,
             Uri.ParsingMode mode)Parses a string into a normalized absolute URI as defined by http://tools.ietf.org/html/rfc3986#section-4.3. | 
| Uri | parseAndResolve(org.parboiled2.ParserInput string,
               Uri base,
               java.nio.charset.Charset charset,
               Uri.ParsingMode mode)Parses a string into a normalized URI reference that is immediately resolved against the given base URI as
 defined by http://tools.ietf.org/html/rfc3986#section-5.2. | 
| Uri.Authority | parseHttp2AuthorityPseudoHeader(org.parboiled2.ParserInput headerValue,
                               java.nio.charset.Charset charset,
                               Uri.ParsingMode mode)Parses the given string as if it were the value of an HTTP/2 ":authority" pseudo-header. | 
| scala.Tuple2<Uri.Path,scala.Option<java.lang.String>> | parseHttp2PathPseudoHeader(org.parboiled2.ParserInput headerValue,
                          java.nio.charset.Charset charset,
                          Uri.ParsingMode mode)Parses the given string as if it were the value of an HTTP/2 ":path" pseudo-header. | 
| Uri | parseHttpRequestTarget(org.parboiled2.ParserInput requestTarget,
                      java.nio.charset.Charset charset,
                      Uri.ParsingMode mode)Parses the given string into an HTTP request target URI as defined by
 http://tools.ietf.org/html/rfc7230#section-5.3. | 
| Uri | resolveUnsafe(java.lang.String scheme,
             java.lang.String userinfo,
             Uri.Host host,
             int port,
             Uri.Path path,
             scala.Option<java.lang.String> query,
             scala.Option<java.lang.String> fragment,
             Uri base)https://tools.ietf.org/html/rfc3986#section-5.2.2
 
 'Unsafe' in the sense that queryString validation must already have been done. | 
| Uri.Path | verifyPath(Uri.Path path,
          java.lang.String scheme,
          Uri.Host host) | 
| java.lang.String | websocketScheme(boolean securedConnection) | 
public static final Uri$ MODULE$
public Uri apply(java.lang.String input)
IllegalUriException.input - (undocumented)public Uri apply(org.parboiled2.ParserInput input)
IllegalUriException.input - (undocumented)public Uri apply(org.parboiled2.ParserInput input, Uri.ParsingMode mode)
IllegalUriException.
 mode - if Relaxed, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.input - (undocumented)public Uri apply(org.parboiled2.ParserInput input, java.nio.charset.Charset charset, Uri.ParsingMode mode)
IllegalUriException.
 mode - if Relaxed, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.input - (undocumented)charset - (undocumented)public Uri apply(java.lang.String scheme, Uri.Authority authority, Uri.Path path, scala.Option<java.lang.String> queryString, scala.Option<java.lang.String> fragment)
IllegalUriException.
 queryString - percent-encoded query string. When characters are
                    encountered that are outside of the RFC3986 range they
                    are automatically percent-encodedscheme - (undocumented)authority - (undocumented)path - (undocumented)fragment - (undocumented)public Uri from(java.lang.String scheme, java.lang.String userinfo, java.lang.String host, int port, java.lang.String path, scala.Option<java.lang.String> queryString, scala.Option<java.lang.String> fragment, Uri.ParsingMode mode)
IllegalUriException.scheme - (undocumented)userinfo - (undocumented)host - (undocumented)port - (undocumented)path - (undocumented)queryString - (undocumented)fragment - (undocumented)mode - (undocumented)public Uri parseAbsolute(org.parboiled2.ParserInput input, java.nio.charset.Charset charset, Uri.ParsingMode mode)
IllegalUriException.
 mode - if Relaxed, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.input - (undocumented)charset - (undocumented)public Uri parseAndResolve(org.parboiled2.ParserInput string, Uri base, java.nio.charset.Charset charset, Uri.ParsingMode mode)
IllegalUriException.
 mode - if Relaxed, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.string - (undocumented)base - (undocumented)charset - (undocumented)public Uri parseHttpRequestTarget(org.parboiled2.ParserInput requestTarget, java.nio.charset.Charset charset, Uri.ParsingMode mode)
IllegalUriException.
 mode - if Relaxed, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.requestTarget - (undocumented)charset - (undocumented)public scala.Tuple2<Uri.Path,scala.Option<java.lang.String>> parseHttp2PathPseudoHeader(org.parboiled2.ParserInput headerValue, java.nio.charset.Charset charset, Uri.ParsingMode mode)
IllegalUriException.
 mode - if Relaxed, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.headerValue - (undocumented)charset - (undocumented)public Uri.Authority parseHttp2AuthorityPseudoHeader(org.parboiled2.ParserInput headerValue, java.nio.charset.Charset charset, Uri.ParsingMode mode)
IllegalUriException.
 mode - if Relaxed, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.headerValue - (undocumented)charset - (undocumented)public java.lang.String normalize(org.parboiled2.ParserInput uri,
                                  java.nio.charset.Charset charset,
                                  Uri.ParsingMode mode)
scheme and host components are converted to lowercase
  - a potentially existing port component is removed if it matches one of the defined default ports for the scheme
  - percent-encoded octets are decoded if allowed, otherwise they are converted to uppercase hex notation
  - . and .. path segments are resolved as far as possible
 
 If the given string is not a valid URI the method throws an IllegalUriException.
 
mode - if Relaxed, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.uri - (undocumented)charset - (undocumented)public Uri effectiveHttpRequestUri(java.lang.String scheme, Uri.Host host, int port, Uri.Path path, scala.Option<java.lang.String> query, scala.Option<java.lang.String> fragment, boolean securedConnection, Uri.Host hostHeaderHost, int hostHeaderPort, Uri.Authority defaultAuthority)
scheme - (undocumented)host - (undocumented)port - (undocumented)path - (undocumented)query - (undocumented)fragment - (undocumented)securedConnection - (undocumented)hostHeaderHost - (undocumented)hostHeaderPort - (undocumented)defaultAuthority - (undocumented)public Uri effectiveRequestUri(java.lang.String scheme, Uri.Host host, int port, Uri.Path path, scala.Option<java.lang.String> query, scala.Option<java.lang.String> fragment, java.lang.String defaultScheme, Uri.Host hostHeaderHost, int hostHeaderPort, Uri.Authority defaultAuthority)
scheme - (undocumented)host - (undocumented)port - (undocumented)path - (undocumented)query - (undocumented)fragment - (undocumented)defaultScheme - (undocumented)hostHeaderHost - (undocumented)hostHeaderPort - (undocumented)defaultAuthority - (undocumented)public java.lang.String httpScheme(boolean securedConnection)
public java.lang.String websocketScheme(boolean securedConnection)
public Uri resolveUnsafe(java.lang.String scheme, java.lang.String userinfo, Uri.Host host, int port, Uri.Path path, scala.Option<java.lang.String> query, scala.Option<java.lang.String> fragment, Uri base)
'Unsafe' in the sense that queryString validation must already have been done.
query - percent-encoded query string that must be guaranteed
                    not to contain invalid percent-encodings or characters not allowed by
                    the RFC.scheme - (undocumented)userinfo - (undocumented)host - (undocumented)port - (undocumented)path - (undocumented)fragment - (undocumented)base - (undocumented)public java.lang.String decode(java.lang.String string,
                               java.nio.charset.Charset charset)
public java.lang.String decode(java.lang.String string,
                               java.nio.charset.Charset charset,
                               int ix,
                               java.lang.StringBuilder sb)
public java.lang.String normalizeScheme(java.lang.String scheme)
public int normalizePort(int port,
                         java.lang.String scheme)
public scala.runtime.Nothing$ fail(java.lang.String summary,
                                   java.lang.String detail)
public Uri create(java.lang.String scheme, java.lang.String userinfo, Uri.Host host, int port, Uri.Path path, scala.Option<java.lang.String> queryString, scala.Option<java.lang.String> fragment)
queryString - percent-encoded query string. When characters are
                    encountered that are outside of the RFC3986 range they
                    are automatically percent-encodedscheme - (undocumented)userinfo - (undocumented)host - (undocumented)port - (undocumented)path - (undocumented)fragment - (undocumented)public Uri create(java.lang.String scheme, Uri.Authority authority, Uri.Path path, scala.Option<java.lang.String> queryString, scala.Option<java.lang.String> fragment)
queryString - percent-encoded query string. When characters are
                    encountered that are outside of the RFC3986 range they
                    are automatically percent-encodedscheme - (undocumented)authority - (undocumented)path - (undocumented)fragment - (undocumented)public Uri createUnsafe(java.lang.String scheme, Uri.Authority authority, Uri.Path path, scala.Option<java.lang.String> queryString, scala.Option<java.lang.String> fragment)
queryString - percent-encoded query string that must be guaranteed
                    not to contain invalid percent-encodings or characters not allowed by
                    the RFC.scheme - (undocumented)authority - (undocumented)path - (undocumented)fragment - (undocumented)