Home | History | Annotate | Download | only in net

Lines Matching refs:scheme

102     <scheme>://<authority><path>?<query>
134 * Absolute URIs are hierarchical if the scheme-specific part starts with
141 * scheme-specific part of an opaque URI cannot start with a '/'.
149 * explicit scheme.
157 * explicit scheme.
166 * Gets the scheme of this URI. Example: "http"
168 * @return the scheme or null if this is a relative URI
173 * Gets the scheme-specific part of this URI, i.e. everything between the
174 * scheme separator ':' and the fragment separator '#'. If this is a
179 * @return the decoded scheme-specific-part
184 * Gets the scheme-specific part of this URI, i.e. everything between the
185 * scheme separator ':' and the fragment separator '#'. If this is a
191 * @return the decoded scheme-specific-part
361 String scheme = getScheme();
363 if (scheme != null) {
364 if (scheme.equalsIgnoreCase("tel") || scheme.equalsIgnoreCase("sip")
365 || scheme.equalsIgnoreCase("sms") || scheme.equalsIgnoreCase("smsto")
366 || scheme.equalsIgnoreCase("mailto")) {
368 builder.append(scheme);
383 // Not a sensitive scheme, but let's still be conservative about
387 if (scheme != null) {
388 builder.append(scheme);
483 /** Cached scheme separator index. */
525 private volatile String scheme = NOT_CACHED;
529 boolean cached = (scheme != NOT_CACHED);
530 return cached ? scheme : (scheme = parseScheme());
692 * @param ssi scheme separator index, -1 for a relative URI
699 // If "//" follows the scheme separator, we have an authority.
729 * @param ssi scheme separator index, -1 for a relative URI
754 // Path starts immediately after scheme separator.
775 .scheme(getScheme())
782 .scheme(getScheme())
793 * @param scheme of the URI
794 * @param ssp scheme-specific-part, everything between the
795 * scheme separator (':') and the fragment separator ('#'), which will
800 * @throws NullPointerException if scheme or ssp is null
801 * @return Uri composed of the given scheme, ssp, and fragment
805 public static Uri fromParts(String scheme, String ssp,
807 if (scheme == null) {
808 throw new NullPointerException("scheme");
814 return new OpaqueUri(scheme, Part.fromDecoded(ssp),
826 private final String scheme;
830 private OpaqueUri(String scheme, Part ssp, Part fragment) {
831 this.scheme = scheme;
850 parcel.writeString(scheme);
860 return scheme == null;
864 return this.scheme;
942 sb.append(scheme).append(':');
954 .scheme(this.scheme)
1132 private final String scheme; // can be null
1138 private HierarchicalUri(String scheme, Part authority, PathPart path,
1140 this.scheme = scheme;
1163 parcel.writeString(scheme);
1175 return scheme == null;
1179 return scheme;
1198 * Creates the encoded scheme-specific part from its sub parts.
1272 if (scheme != null) {
1273 builder.append(scheme).append(':');
1287 .scheme(scheme)
1300 * {@code <scheme>://<authority><absolute path>?<query>#<fragment>}
1307 * {@code <scheme>:<opaque part>#<fragment>}
1313 private String scheme;
1326 * Sets the scheme.
1328 * @param scheme name or {@code null} if this is a relative Uri
1330 public Builder scheme(String scheme) {
1331 this.scheme = scheme;
1341 * Encodes and sets the given opaque scheme-specific-part.
1350 * Sets the previously encoded opaque scheme-specific-part.
1393 * you specify a scheme and/or authority, the builder will prepend the
1404 * you specify a scheme and/or authority, the builder will prepend the
1506 * scheme is null
1510 if (this.scheme == null) {
1512 "An opaque URI must have a scheme.");
1515 return new OpaqueUri(scheme, opaquePart, fragment);
1522 // If we have a scheme and/or authority, the path must
1530 scheme, authority, path, query, fragment);
1535 return scheme != null
1721 * Return an equivalent URI with a lowercase scheme component.
1735 * begin with and a scheme component cannot be found.
1742 String scheme = getScheme();
1743 if (scheme == null) return this; // give up
1744 String lowerScheme = scheme.toLowerCase(Locale.US);
1745 if (scheme.equals(lowerScheme)) return this; // no change
1747 return buildUpon().scheme(lowerScheme).build();
1794 * using the UTF-8 scheme. Leaves letters ("A-Z", "a-z"), numbers
1808 * using the UTF-8 scheme. Leaves letters ("A-Z", "a-z"), numbers
1915 * Decodes '%'-escaped octets in the given string using the UTF-8 scheme.