Searched refs:scheme (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/main/java/libcore/net/http/
H A DChallenge.java25 final String scheme; field in class:Challenge
28 public Challenge(String scheme, String realm) { argument
29 this.scheme = scheme;
35 && ((Challenge) o).scheme.equals(scheme)
40 return scheme.hashCode() + 31 * realm.hashCode();
44 return "Challenge[" + scheme + " " + realm + "]";
H A DHeaderParser.java72 * Parse RFC 2617 challenges. This API is only interested in the scheme
78 * auth-scheme = token
80 * challenge = auth-scheme 1*SP 1#auth-param
95 String scheme = value.substring(tokenStart, pos).trim();
99 // It needs to be fixed to handle any scheme and any parameters
114 result.add(new Challenge(scheme, realm));
H A DHttpURLConnectionImpl.java386 return Retry.NONE; // the scheme changed; don't retry.
443 challenge.realm, challenge.scheme);
452 return challenge.scheme + " " + encoded;
/libcore/luni/src/main/java/java/net/
H A DProxySelectorImpl.java39 String scheme = uri.getScheme();
40 if (scheme == null) {
41 throw new IllegalArgumentException("scheme == null");
48 if ("http".equalsIgnoreCase(scheme)) {
52 } else if ("https".equalsIgnoreCase(scheme)) {
56 } else if ("ftp".equalsIgnoreCase(scheme)) {
60 } else if ("socket".equalsIgnoreCase(scheme)) {
H A DURI.java58 * <p>Absolute URIs always have a scheme. If its scheme is supported by {@link
61 * <p>Relative URIs do not have a scheme and cannot be converted to URLs. If you
85 * <p>Opaque URIs have both a scheme and a scheme-specific part that does not
87 * scheme-specific part of an opaque URI is not parsed so an opaque URI never
120 * A URI's host, port and scheme are not eligible for encoding and must not
146 /** for query, fragment, and scheme-specific part */
181 private transient String scheme; field in class:URI
210 * @param scheme th
212 URI(String scheme, String schemeSpecificPart, String fragment) argument
235 URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment) argument
297 URI(String scheme, String host, String path, String fragment) argument
306 URI(String scheme, String authority, String path, String query, String fragment) argument
960 getEffectivePort(String scheme, int specifiedPort) argument
[all...]
H A DAuthenticator.java41 private String scheme; field in class:Authenticator
97 * Returns the scheme of the connection that requests authorization, for
100 * @return scheme of the connection.
103 return this.scheme;
121 * scheme of the connection that requests authentication.
135 thisAuthenticator.scheme = rScheme;
171 * scheme of the connection that requests authentication.
186 thisAuthenticator.scheme = rScheme;
221 * scheme of the connection that requests authentication.
241 thisAuthenticator.scheme
[all...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTest.java132 public String getResourceURI(String href, String scheme, String contentType) throws argument
134 if (scheme == null) {
135 throw new NullPointerException("scheme");
137 if ("file".equals(scheme)) {
140 if ("http".equals(scheme)) {
153 throw new DOMTestLoadException(new Exception("Unrecognized URI scheme " +
154 scheme));
157 public String createTempURI(String scheme) throws DOMTestLoadException { argument
158 if (scheme == null) {
159 throw new NullPointerException("scheme");
[all...]
H A DDOMTestInnerClass.java133 public void assertURIEquals(String assertID, String scheme, String path, argument
137 test.assertURIEquals(assertID, scheme, path, host, file, name, query,
H A DDOMTestCase.java646 * @param scheme
647 * Expected scheme, for example, "file". If null, scheme is
672 String scheme,
722 if (scheme != null) {
723 assertEquals(assertID, scheme, actualScheme);
670 assertURIEquals( String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DDOMTestCase.java102 public void assertURIEquals(String assertID, String scheme, String path, argument
146 if (scheme != null) {
147 assertEquals(assertID, scheme, actualScheme);

Completed in 187 milliseconds