MCPcopy Create free account
hub / github.com/zaproxy/zaproxy / fromAuthority

Method fromAuthority

zap/src/main/java/org/apache/commons/httpclient/URI.java:2199–2205  ·  view source on GitHub ↗

Creates a URI from the given authority. Note: Not part of the public API. @param authority the authority component. @return the URI. @throws URIException if an error occurred while parsing the authority.

(String authority)

Source from the content-addressed store, hash-verified

2197 * @throws URIException if an error occurred while parsing the authority.
2198 */
2199 public static URI fromAuthority(String authority) throws URIException {
2200 URI uri = new URI();
2201 uri.parseAuthority(authority, true);
2202 uri.setURI();
2203 uri._uri = authority.toCharArray();
2204 return uri;
2205 }
2206
2207 /**
2208 * Parse the authority component.

Calls 2

parseAuthorityMethod · 0.95
setURIMethod · 0.95