Lines Matching refs:authority

93        ambiguous in terms of differentiating between an authority component
97 matching. In other words, the authority component wins."
100 <scheme>://<authority><path>?<query>
194 * Gets the decoded authority part of this URI. For
195 * server addresses, the authority is structured as follows:
200 * @return the authority for this URI or null if not present
205 * Gets the encoded authority part of this URI. For
206 * server addresses, the authority is structured as follows:
211 * @return the authority for this URI or null if not present
216 * Gets the decoded user information from the authority.
217 * For example, if the authority is "nobody@google.com", this method will
225 * Gets the encoded user information from the authority.
226 * For example, if the authority is "nobody@google.com", this method will
234 * Gets the encoded host from the authority for this URI. For example,
235 * if the authority is "bob@google.com", this method will return
243 * Gets the port from the authority for this URI. For example,
244 * if the authority is "google.com:80", this method will return 80.
518 private Part authority;
521 if (authority == null) {
524 return authority = Part.fromEncoded(encodedAuthority);
527 return authority;
645 * Parses an authority out of the given URI string.
650 * @return the authority or null if none is found
655 // If "//" follows the scheme separator, we have an authority.
659 // We have an authority.
697 // Skip over authority to path.
732 .authority(getAuthorityPart())
1008 String authority = getEncodedAuthority();
1009 if (authority == null) {
1013 int end = authority.indexOf('@');
1014 return end == NOT_FOUND ? null : authority.substring(0, end);
1031 String authority = getEncodedAuthority();
1032 if (authority == null) {
1037 int userInfoSeparator = authority.indexOf('@');
1038 int portSeparator = authority.indexOf(':', userInfoSeparator);
1041 ? authority.substring(userInfoSeparator + 1)
1042 : authority.substring(userInfoSeparator + 1, portSeparator);
1056 String authority = getEncodedAuthority();
1057 if (authority == null) {
1063 int userInfoSeparator = authority.indexOf('@');
1064 int portSeparator = authority.indexOf(':', userInfoSeparator);
1070 String portString = decode(authority.substring(portSeparator + 1));
1089 private final Part authority;
1094 private HierarchicalUri(String scheme, Part authority, PathPart path,
1097 this.authority = Part.nonNull(authority);
1120 authority.writeTo(parcel);
1163 String encodedAuthority = authority.getEncoded();
1165 // Even if the authority is "", we still want to append "//".
1180 return this.authority.getDecoded();
1184 return this.authority.getEncoded();
1244 .authority(authority)
1256 * {@code &lt;scheme&gt;://&lt;authority&gt;&lt;absolute path&gt;?&lt;query&gt;#&lt;fragment&gt;}
1260 * or {@code //&lt;authority&gt;&lt;absolute path&gt;?&lt;query&gt;#&lt;fragment&gt;}
1269 private Part authority;
1312 Builder authority(Part authority) {
1316 this.authority = authority;
1321 * Encodes and sets the authority.
1323 public Builder authority(String authority) {
1324 return authority(Part.fromDecoded(authority));
1328 * Sets the previously encoded authority.
1330 public Builder encodedAuthority(String authority) {
1331 return authority(Part.fromEncoded(authority));
1347 * you specify a scheme and/or authority, the builder will prepend the
1358 * you specify a scheme and/or authority, the builder will prepend the
1469 // If we have a scheme and/or authority, the path must
1477 scheme, authority, path, query, fragment);
1483 || (authority != null && authority != Part.NULL);