Home | History | Annotate | Download | only in net

Lines Matching defs:authority

102        ambiguous in terms of differentiating between an authority component
106 matching. In other words, the authority component wins."
109 <scheme>://<authority><path>?<query>
203 * Gets the decoded authority part of this URI. For
204 * server addresses, the authority is structured as follows:
209 * @return the authority for this URI or null if not present
214 * Gets the encoded authority part of this URI. For
215 * server addresses, the authority is structured as follows:
220 * @return the authority for this URI or null if not present
225 * Gets the decoded user information from the authority.
226 * For example, if the authority is "nobody@google.com", this method will
234 * Gets the encoded user information from the authority.
235 * For example, if the authority is "nobody@google.com", this method will
243 * Gets the encoded host from the authority for this URI. For example,
244 * if the authority is "bob@google.com", this method will return
252 * Gets the port from the authority for this URI. For example,
253 * if the authority is "google.com:80", this method will return 80.
574 private Part authority;
577 if (authority == null) {
580 return authority = Part.fromEncoded(encodedAuthority);
583 return authority;
701 * Parses an authority out of the given URI string.
706 * @return the authority or null if none is found
711 // If "//" follows the scheme separator, we have an authority.
715 // We have an authority.
753 // Skip over authority to path.
788 .authority(getAuthorityPart())
1064 String authority = getEncodedAuthority();
1065 if (authority == null) {
1069 int end = authority.indexOf('@');
1070 return end == NOT_FOUND ? null : authority.substring(0, end);
1087 String authority = getEncodedAuthority();
1088 if (authority == null) {
1093 int userInfoSeparator = authority.indexOf('@');
1094 int portSeparator = authority.indexOf(':', userInfoSeparator);
1097 ? authority.substring(userInfoSeparator + 1)
1098 : authority.substring(userInfoSeparator + 1, portSeparator);
1112 String authority = getEncodedAuthority();
1113 if (authority == null) {
1119 int userInfoSeparator = authority.indexOf('@');
1120 int portSeparator = authority.indexOf(':', userInfoSeparator);
1126 String portString = decode(authority.substring(portSeparator + 1));
1145 private final Part authority;
1150 private HierarchicalUri(String scheme, Part authority, PathPart path,
1153 this.authority = Part.nonNull(authority);
1176 authority.writeTo(parcel);
1219 String encodedAuthority = authority.getEncoded();
1221 // Even if the authority is "", we still want to append "//".
1236 return this.authority.getDecoded();
1240 return this.authority.getEncoded();
1300 .authority(authority)
1312 * {@code <scheme>://<authority><absolute path>?<query>#<fragment>}
1316 * or {@code //<authority><absolute path>?<query>#<fragment>}
1327 private Part authority;
1370 Builder authority(Part authority) {
1374 this.authority = authority;
1379 * Encodes and sets the authority.
1381 public Builder authority(String authority) {
1382 return authority(Part.fromDecoded(authority));
1386 * Sets the previously encoded authority.
1388 public Builder encodedAuthority(String authority) {
1389 return authority(Part.fromEncoded(authority));
1405 * you specify a scheme and/or authority, the builder will prepend the
1416 * you specify a scheme and/or authority, the builder will prepend the
1534 // If we have a scheme and/or authority, the path must
1542 scheme, authority, path, query, fragment);
1548 || (authority != null && authority != Part.NULL);
2366 * scheme, authority, and atomic path segments match.