Lines Matching defs:authority

98        ambiguous in terms of differentiating between an authority component
102 matching. In other words, the authority component wins."
105 <scheme>://<authority><path>?<query>
199 * Gets the decoded authority part of this URI. For
200 * server addresses, the authority is structured as follows:
205 * @return the authority for this URI or null if not present
210 * Gets the encoded authority part of this URI. For
211 * server addresses, the authority is structured as follows:
216 * @return the authority for this URI or null if not present
221 * Gets the decoded user information from the authority.
222 * For example, if the authority is "nobody@google.com", this method will
230 * Gets the encoded user information from the authority.
231 * For example, if the authority is "nobody@google.com", this method will
239 * Gets the encoded host from the authority for this URI. For example,
240 * if the authority is "bob@google.com", this method will return
248 * Gets the port from the authority for this URI. For example,
249 * if the authority is "google.com:80", this method will return 80.
565 private Part authority;
568 if (authority == null) {
571 return authority = Part.fromEncoded(encodedAuthority);
574 return authority;
692 * Parses an authority out of the given URI string.
697 * @return the authority or null if none is found
702 // If "//" follows the scheme separator, we have an authority.
706 // We have an authority.
744 // Skip over authority to path.
779 .authority(getAuthorityPart())
1055 String authority = getEncodedAuthority();
1056 if (authority == null) {
1060 int end = authority.indexOf('@');
1061 return end == NOT_FOUND ? null : authority.substring(0, end);
1078 String authority = getEncodedAuthority();
1079 if (authority == null) {
1084 int userInfoSeparator = authority.indexOf('@');
1085 int portSeparator = authority.indexOf(':', userInfoSeparator);
1088 ? authority.substring(userInfoSeparator + 1)
1089 : authority.substring(userInfoSeparator + 1, portSeparator);
1103 String authority = getEncodedAuthority();
1104 if (authority == null) {
1110 int userInfoSeparator = authority.indexOf('@');
1111 int portSeparator = authority.indexOf(':', userInfoSeparator);
1117 String portString = decode(authority.substring(portSeparator + 1));
1136 private final Part authority;
1141 private HierarchicalUri(String scheme, Part authority, PathPart path,
1144 this.authority = Part.nonNull(authority);
1167 authority.writeTo(parcel);
1210 String encodedAuthority = authority.getEncoded();
1212 // Even if the authority is "", we still want to append "//".
1227 return this.authority.getDecoded();
1231 return this.authority.getEncoded();
1291 .authority(authority)
1303 * {@code <scheme>://<authority><absolute path>?<query>#<fragment>}
1307 * or {@code //<authority><absolute path>?<query>#<fragment>}
1318 private Part authority;
1361 Builder authority(Part authority) {
1365 this.authority = authority;
1370 * Encodes and sets the authority.
1372 public Builder authority(String authority) {
1373 return authority(Part.fromDecoded(authority));
1377 * Sets the previously encoded authority.
1379 public Builder encodedAuthority(String authority) {
1380 return authority(Part.fromEncoded(authority));
1396 * you specify a scheme and/or authority, the builder will prepend the
1407 * you specify a scheme and/or authority, the builder will prepend the
1525 // If we have a scheme and/or authority, the path must
1533 scheme, authority, path, query, fragment);
1539 || (authority != null && authority != Part.NULL);