Home
last modified time | relevance | path

Searched refs:URI (Results 1 – 25 of 74) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/net/
DURITest.java20 import java.net.URI;
27 URI uri = new URI("http://username:password@host:8080/directory/file?query#ref"); in testUriParts()
48 assertEquals(new URI("HTTP://localhost/foo?bar=baz#quux"), in testEqualsCaseMapping()
49 new URI("HTTP://localhost/foo?bar=baz#quux")); in testEqualsCaseMapping()
50 assertEquals(new URI("http://localhost/foo?bar=baz#quux"), in testEqualsCaseMapping()
51 new URI("http://LOCALHOST/foo?bar=baz#quux")); in testEqualsCaseMapping()
52 assertFalse(new URI("http://localhost/foo?bar=baz#quux") in testEqualsCaseMapping()
53 .equals(new URI("http://localhost/FOO?bar=baz#quux"))); in testEqualsCaseMapping()
54 assertFalse(new URI("http://localhost/foo?bar=baz#quux") in testEqualsCaseMapping()
55 .equals(new URI("http://localhost/foo?BAR=BAZ#quux"))); in testEqualsCaseMapping()
[all …]
DOldURITest.java20 import java.net.URI;
94 new URI(s); in test_createLjava_lang_String()
102 URI.create(s); in test_createLjava_lang_String()
111 URI b = new URI("http://www.google.com/dir1/dir2"); in test_relativizeLjava_net_URI()
120 URI b = new URI("http://www.test.com/dir"); in test_resolveLjava_net_URI()
121 b.resolve((URI) null); in test_resolveLjava_net_URI()
129 URI b = new URI("http://www.test.com/dir"); in test_resolveLjava_lang_String()
136 URI b = new URI("http://www.test.com/dir"); in test_resolveLjava_lang_String()
145 new URI(null); in test_ConstructorLjava_lang_String()
DAbstractCookiesTest.java47 import java.net.URI;
221 cookieManager.put(new URI("http://android.com"), cookieHeaders("a=android", "b=banana")); in testResponseWithMultipleCookieHeaderLines()
235 cookieManager.put(new URI("http://android.com/"), cookieHeaders("a=android")); in testDomainDefaulting()
242 cookieManager.put(new URI("http://android.com/"), in testNonMatchingDomainsRejected()
250 cookieManager.put(new URI("http://www.android.com/"), in testMatchingDomainsAccepted()
258 cookieManager.put(new URI("http://android.com/foo/bar"), cookieHeaders("a=android")); in testPathDefaulting()
260 cookieManager.put(new URI("http://android.com/"), cookieHeaders("b=banana")); in testPathDefaulting()
262 cookieManager.put(new URI("http://android.com/foo/"), cookieHeaders("c=carrot")); in testPathDefaulting()
269 cookieManager.put(new URI("http://android.com/foo/bar"), in testNonMatchingPathsRejected()
278 cookieManager.put(new URI("http://android.com/foo/bar/"), in testMatchingPathsAccepted()
[all …]
DUrlEncodingTest.java20 import java.net.URI;
31 assertEquals("%61", new URI("http://foo#%61").getRawFragment()); in testUriRetainsOriginalEncoding()
40 assertEquals("a+b", new URI("http://foo#a+b").getFragment()); in testDecodingPlus()
46 assertEquals("a+b", new URI("http", "foo", "/", "a+b").getRawFragment()); in testEncodingPlus()
53 new URI("http://foo#a b"); in testDecodingSpace()
62 assertEquals("a%20b", new URI("http", "foo", "/", "a b").getRawFragment()); in testEncodingSpace()
67 new URI("http://foo#%"); in testUriDecodingPartial()
72 new URI("http://foo#%0"); in testUriDecodingPartial()
93 new URI("http://foo#%0g"); in testUriDecodingInvalid()
197 new URI("http://foo#" + "%\u0664\u0661"); in testDecodingNonUsDigits()
[all …]
DOldAndroidURITest.java19 import java.net.URI;
32 URI uri = new URI(str); in construct()
45 URI b = URI.create(base); in resolve()
46 URI resolved = b.resolve(uri); in resolve()
DCookiesMCompatibilityTest.java22 import java.net.URI;
41 URI uri = new URI("http://services.chargepoint.com"); in testCookiesWithoutLeadingPeriod()
45 new URI("https://webservices.chargepoint.com/foo"), in testCookiesWithoutLeadingPeriod()
53 URI uri = new URI("http://services.chargepoint.com"); in testCookiesWithLeadingPeriod()
59 new URI("https://webservices.chargepoint.com/foo"), in testCookiesWithLeadingPeriod()
DProxySelectorTest.java22 import java.net.URI;
31 private URI httpUri;
32 private URI ftpUri;
33 private URI httpsUri;
34 private URI socketUri;
35 private URI otherUri;
40 httpUri = new URI("http://android.com"); in setUp()
41 ftpUri = new URI("ftp://android.com"); in setUp()
42 httpsUri = new URI("https://android.com"); in setUp()
43 socketUri = new URI("socket://android.com"); in setUp()
[all …]
DCookiesTest.java22 import java.net.URI;
41 URI uri = new URI("http://chargepoint.com"); in testCookiesWithLeadingPeriod()
45 new URI("https://webservices.chargepoint.com/backend.php/mobileapi/"), in testCookiesWithLeadingPeriod()
DOldCookieHandlerTest.java24 import java.net.URI;
83 public Map get(URI uri, Map requestHeaders) throws IOException { in get()
88 public void put(URI uri, Map responseHeaders) throws IOException { in put()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURITest.java21 import java.net.URI;
28 private URI[] uris;
30 private URI[] getUris() throws URISyntaxException { in getUris()
35 uris = new URI[] { in getUris()
37 new URI( in getUris()
40 new URI( in getUris()
43 new URI( in getUris()
49 new URI("http", "user%60%20info", "host", 80, "/a%20path", //$NON-NLS-4$ in getUris()
52 new URI("http", "user%C3%9F%C2%A3info", "host", -1, in getUris()
56 new URI("ascheme", "user\u00DF\u00A3info", "host", 80, in getUris()
[all …]
DCookiePolicyTest.java21 import java.net.URI;
35 URI uri = new URI(""); in test_ShouldAccept_LURI_LHttpCookie()
63 accept = CookiePolicy.ACCEPT_ORIGINAL_SERVER.shouldAccept(new URI( in test_ShouldAccept_LURI_LHttpCookie()
68 accept = CookiePolicy.ACCEPT_ORIGINAL_SERVER.shouldAccept(new URI( in test_ShouldAccept_LURI_LHttpCookie()
73 accept = CookiePolicy.ACCEPT_ORIGINAL_SERVER.shouldAccept(new URI( in test_ShouldAccept_LURI_LHttpCookie()
78 accept = CookiePolicy.ACCEPT_ORIGINAL_SERVER.shouldAccept(new URI( in test_ShouldAccept_LURI_LHttpCookie()
83 accept = CookiePolicy.ACCEPT_ORIGINAL_SERVER.shouldAccept(new URI( in test_ShouldAccept_LURI_LHttpCookie()
88 accept = CookiePolicy.ACCEPT_ORIGINAL_SERVER.shouldAccept(new URI( in test_ShouldAccept_LURI_LHttpCookie()
DProxySelectorTest.java25 import java.net.URI;
51 private static URI httpUri;
53 private static URI ftpUri;
55 private static URI httpsUri;
57 private static URI tcpUri;
65 httpUri = new URI("http://test.com");
66 ftpUri = new URI("ftp://test.com");
67 httpsUri = new URI("https://test.com");
68 tcpUri = new URI("socket://host.com");
149 httpUri = new URI("http://a@"); in test_selectLjava_net_URI_SelectExact_NullHost()
[all …]
DCookieHandlerTest.java22 import java.net.URI;
53 public Map get(URI uri, Map requestHeaders) throws IOException { in get()
57 public void put(URI uri, Map responseHeaders) throws IOException { in put()
DResponseCacheTest.java24 import java.net.URI;
60 public CacheResponse get(URI arg0, String arg1, Map arg2) in get()
65 public CacheRequest put(URI arg0, URLConnection arg1) in put()
/libcore/ojluni/src/main/java/java/net/
DInMemoryCookieStore.java66 private Map<URI, List<HttpCookie>> uriIndex = null;
91 public void add(URI uri, HttpCookie cookie) { in add()
117 public List<HttpCookie> get(URI uri) { in get()
171 public List<URI> getURIs() { in getURIs()
197 List<URI> result = new ArrayList<URI>(uriIndex.keySet()); in getURIs()
210 public boolean remove(URI uri, HttpCookie ck) { in remove()
320 private void getInternal1(List<HttpCookie> cookies, Map<URI, List<HttpCookie>> cookieIndex, in getInternal1() argument
326 for (Map.Entry<URI, List<HttpCookie>> entry : cookieIndex.entrySet()) { in getInternal1()
414 private URI getEffectiveURI(URI uri) { in getEffectiveURI()
415 URI effectiveURI = null; in getEffectiveURI()
[all …]
DCookieStore.java67 public void add(URI uri, HttpCookie cookie); in add()
85 public List<HttpCookie> get(URI uri); in get()
104 public List<URI> getURIs(); in getURIs()
120 public boolean remove(URI uri, HttpCookie cookie); in remove()
DCookiePolicy.java43 public boolean shouldAccept(URI uri, HttpCookie cookie) {
52 public boolean shouldAccept(URI uri, HttpCookie cookie) {
61 public boolean shouldAccept(URI uri, HttpCookie cookie) {
77 public boolean shouldAccept(URI uri, HttpCookie cookie); in shouldAccept()
/libcore/ojluni/annotations/hiddenapi/java/net/
DURI.java32 public final class URI implements java.lang.Comparable<java.net.URI>, java.io.Serializable { class
34 private URI() { in URI() method in URI
38 public URI(java.lang.String str) throws java.net.URISyntaxException { in URI() method in URI
42 public URI( in URI() method in URI
54 public URI( in URI() method in URI
64 public URI( in URI() method in URI
73 public URI(java.lang.String scheme, java.lang.String ssp, java.lang.String fragment) in URI() method in URI
78 public static java.net.URI create(java.lang.String str) { in create()
82 public java.net.URI parseServerAuthority() throws java.net.URISyntaxException { in parseServerAuthority()
86 public java.net.URI normalize() { in normalize()
[all …]
/libcore/ojluni/src/main/java/java/security/
DDomainLoadStoreParameter.java28 import java.net.URI;
108 private final URI configuration;
131 public DomainLoadStoreParameter(URI configuration, in DomainLoadStoreParameter()
146 public URI getConfiguration() { in getConfiguration()
/libcore/ojluni/src/main/java/sun/security/x509/
DURIName.java29 import java.net.URI;
84 private URI uri;
107 uri = new URI(name); in URIName()
157 URI uri; in nameConstraint()
160 uri = new URI(name); in nameConstraint()
183 URIName(URI uri, String host, DNSName hostDNS) { in URIName()
235 public URI getURI() { in getURI()
/libcore/luni/src/test/filesystems/src/mypackage/
DMockFileSystem.java20 import java.net.URI;
32 private URI uri;
36 public MockFileSystem(URI uri, Map<String, ?> env) { in MockFileSystem()
46 public URI getURI() { in getURI()
/libcore/ojluni/src/main/java/java/nio/file/
DFileSystems.java29 import java.net.URI;
103 return provider.getFileSystem(URI.create("file:///")); in defaultFileSystem()
217 public static FileSystem getFileSystem(URI uri) { in getFileSystem()
273 public static FileSystem newFileSystem(URI uri, Map<String,?> env) in newFileSystem()
318 public static FileSystem newFileSystem(URI uri, Map<String,?> env, ClassLoader loader) in newFileSystem()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFileSystemsTest.java28 import java.net.URI;
73 public void test_newFileSystem$URI$Map() throws IOException { in test_newFileSystem$URI$Map()
93 public void test_newFileSystem$URI$Map$ClassLoader() throws Exception { in test_newFileSystem$URI$Map$ClassLoader()
120 public void test_newFileSystem$URI$Map$ClassLoader_customClassLoader() throws Exception { in test_newFileSystem$URI$Map$ClassLoader_customClassLoader()
131 URI stubURI = new URI("stubScheme://sometext"); in test_newFileSystem$URI$Map$ClassLoader_customClassLoader()
/libcore/benchmarks/src/benchmarks/regression/
DEqualsHashCodeBenchmark.java21 import java.net.URI;
26 URI() { in URI() method
28 return new URI(text); in URI()
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXRevocationChecker.java27 import java.net.URI;
99 private URI ocspResponder;
118 public void setOcspResponder(URI uri) { in setOcspResponder()
131 public URI getOcspResponder() { in getOcspResponder()

123