Home | History | Annotate | Download | only in net

Lines Matching defs:authority

89        ambiguous in terms of differentiating between an authority component
93 matching. In other words, the authority component wins."
96 <scheme>://<authority><path>?<query>
190 * Gets the decoded authority part of this URI. For
191 * server addresses, the authority is structured as follows:
196 * @return the authority for this URI or null if not present
201 * Gets the encoded authority part of this URI. For
202 * server addresses, the authority is structured as follows:
207 * @return the authority for this URI or null if not present
212 * Gets the decoded user information from the authority.
213 * For example, if the authority is "nobody@google.com", this method will
221 * Gets the encoded user information from the authority.
222 * For example, if the authority is "nobody@google.com", this method will
230 * Gets the encoded host from the authority for this URI. For example,
231 * if the authority is "bob@google.com", this method will return
239 * Gets the port from the authority for this URI. For example,
240 * if the authority is "google.com:80", this method will return 80.
514 private Part authority;
517 if (authority == null) {
520 return authority = Part.fromEncoded(encodedAuthority);
523 return authority;
641 * Parses an authority out of the given URI string.
646 * @return the authority or null if none is found
651 // If "//" follows the scheme separator, we have an authority.
655 // We have an authority.
693 // Skip over authority to path.
728 .authority(getAuthorityPart())
1004 String authority = getEncodedAuthority();
1005 if (authority == null) {
1009 int end = authority.indexOf('@');
1010 return end == NOT_FOUND ? null : authority.substring(0, end);
1027 String authority = getEncodedAuthority();
1028 if (authority == null) {
1033 int userInfoSeparator = authority.indexOf('@');
1034 int portSeparator = authority.indexOf(':', userInfoSeparator);
1037 ? authority.substring(userInfoSeparator + 1)
1038 : authority.substring(userInfoSeparator + 1, portSeparator);
1052 String authority = getEncodedAuthority();
1053 if (authority == null) {
1059 int userInfoSeparator = authority.indexOf('@');
1060 int portSeparator = authority.indexOf(':', userInfoSeparator);
1066 String portString = decode(authority.substring(portSeparator + 1));
1085 private final Part authority;
1090 private HierarchicalUri(String scheme, Part authority, PathPart path,
1093 this.authority = Part.nonNull(authority);
1116 authority.writeTo(parcel);
1159 String encodedAuthority = authority.getEncoded();
1161 // Even if the authority is "", we still want to append "//".
1176 return this.authority.getDecoded();
1180 return this.authority.getEncoded();
1240 .authority(authority)
1252 * {@code &lt;scheme&gt;://&lt;authority&gt;&lt;absolute path&gt;?&lt;query&gt;#&lt;fragment&gt;}
1256 * or {@code //&lt;authority&gt;&lt;absolute path&gt;?&lt;query&gt;#&lt;fragment&gt;}
1265 private Part authority;
1308 Builder authority(Part authority) {
1312 this.authority = authority;
1317 * Encodes and sets the authority.
1319 public Builder authority(String authority) {
1320 return authority(Part.fromDecoded(authority));
1324 * Sets the previously encoded authority.
1326 public Builder encodedAuthority(String authority) {
1327 return authority(Part.fromEncoded(authority));
1343 * you specify a scheme and/or authority, the builder will prepend the
1354 * you specify a scheme and/or authority, the builder will prepend the
1465 // If we have a scheme and/or authority, the path must
1473 scheme, authority, path, query, fragment);
1479 || (authority != null && authority != Part.NULL);