[go: nahoru, domu]

Lines Matching refs:scheme

108     <scheme>://<authority><path>?<query>
140 * Absolute URIs are hierarchical if the scheme-specific part starts with
147 * scheme-specific part of an opaque URI cannot start with a '/'.
155 * explicit scheme.
163 * explicit scheme.
172 * Gets the scheme of this URI. Example: "http"
174 * @return the scheme or null if this is a relative URI
179 * Gets the scheme-specific part of this URI, i.e.&nbsp;everything between
180 * the scheme separator ':' and the fragment separator '#'. If this is a
185 * @return the decoded scheme-specific-part
190 * Gets the scheme-specific part of this URI, i.e.&nbsp;everything between
191 * the scheme separator ':' and the fragment separator '#'. If this is a
197 * @return the decoded scheme-specific-part
367 String scheme = getScheme();
369 if (scheme != null) {
370 if (scheme.equalsIgnoreCase("tel") || scheme.equalsIgnoreCase("sip")
371 || scheme.equalsIgnoreCase("sms") || scheme.equalsIgnoreCase("smsto")
372 || scheme.equalsIgnoreCase("mailto")) {
374 builder.append(scheme);
387 } else if (scheme.equalsIgnoreCase("http") || scheme.equalsIgnoreCase("https")
388 || scheme.equalsIgnoreCase("ftp")) {
394 // Not a sensitive scheme, but let's still be conservative about
398 if (scheme != null) {
399 builder.append(scheme);
494 /** Cached scheme separator index. */
536 private volatile String scheme = NOT_CACHED;
540 boolean cached = (scheme != NOT_CACHED);
541 return cached ? scheme : (scheme = parseScheme());
703 * @param ssi scheme separator index, -1 for a relative URI
710 // If "//" follows the scheme separator, we have an authority.
740 * @param ssi scheme separator index, -1 for a relative URI
765 // Path starts immediately after scheme separator.
786 .scheme(getScheme())
793 .scheme(getScheme())
804 * @param scheme of the URI
805 * @param ssp scheme-specific-part, everything between the
806 * scheme separator (':') and the fragment separator ('#'), which will
811 * @throws NullPointerException if scheme or ssp is null
812 * @return Uri composed of the given scheme, ssp, and fragment
816 public static Uri fromParts(String scheme, String ssp,
818 if (scheme == null) {
819 throw new NullPointerException("scheme");
825 return new OpaqueUri(scheme, Part.fromDecoded(ssp),
837 private final String scheme;
841 private OpaqueUri(String scheme, Part ssp, Part fragment) {
842 this.scheme = scheme;
861 parcel.writeString(scheme);
871 return scheme == null;
875 return this.scheme;
953 sb.append(scheme).append(':');
965 .scheme(this.scheme)
1143 private final String scheme; // can be null
1149 private HierarchicalUri(String scheme, Part authority, PathPart path,
1151 this.scheme = scheme;
1174 parcel.writeString(scheme);
1186 return scheme == null;
1190 return scheme;
1209 * Creates the encoded scheme-specific part from its sub parts.
1283 if (scheme != null) {
1284 builder.append(scheme).append(':');
1298 .scheme(scheme)
1311 * {@code <scheme>://<authority><absolute path>?<query>#<fragment>}
1318 * {@code <scheme>:<opaque part>#<fragment>}
1324 private String scheme;
1337 * Sets the scheme.
1339 * @param scheme name or {@code null} if this is a relative Uri
1341 public Builder scheme(String scheme) {
1342 this.scheme = scheme;
1352 * Encodes and sets the given opaque scheme-specific-part.
1361 * Sets the previously encoded opaque scheme-specific-part.
1404 * you specify a scheme and/or authority, the builder will prepend the
1415 * you specify a scheme and/or authority, the builder will prepend the
1517 * scheme is null
1521 if (this.scheme == null) {
1523 "An opaque URI must have a scheme.");
1526 return new OpaqueUri(scheme, opaquePart, fragment);
1533 // If we have a scheme and/or authority, the path must
1541 scheme, authority, path, query, fragment);
1546 return scheme != null
1732 * Return an equivalent URI with a lowercase scheme component.
1746 * begin with and a scheme component cannot be found.
1753 String scheme = getScheme();
1754 if (scheme == null) return this; // give up
1755 String lowerScheme = scheme.toLowerCase(Locale.ROOT);
1756 if (scheme.equals(lowerScheme)) return this; // no change
1758 return buildUpon().scheme(lowerScheme).build();
1805 * using the UTF-8 scheme. Leaves letters ("A-Z", "a-z"), numbers
1819 * using the UTF-8 scheme. Leaves letters ("A-Z", "a-z"), numbers
1926 * Decodes '%'-escaped octets in the given string using the UTF-8 scheme.
2352 * scheme, authority, and atomic path segments match.