/external/apache-http/src/org/apache/http/impl/client/ |
RedirectLocations.java | 34 import java.net.URI; 43 private final Set<URI> uris; 47 this.uris = new HashSet<URI>(); 51 * Returns true if this collection contains the given URI. 53 public boolean contains(final URI uri) { 54 return this.uris.contains(uri); 58 * Adds a new URI to the list of redirects. 60 public void add(final URI uri) { [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
URITest.java | 19 import java.net.URI; 27 URI uri = new URI("http://username:password@host:8080/directory/file?query#ref"); local 28 assertEquals("http", uri.getScheme()); 29 assertEquals("username:password@host:8080", uri.getAuthority()); 30 assertEquals("username:password@host:8080", uri.getRawAuthority()); 31 assertEquals("username:password", uri.getUserInfo()); 32 assertEquals("username:password", uri.getRawUserInfo()); 33 assertEquals("host", uri.getHost()) 69 URI uri = new URI("http:\/\/user:pass@host\/path\/file?query#hash"); local 74 URI uri = new URI("http:\/\/\/path"); local 80 URI uri = new URI("http:\/path"); local 86 URI uri = new URI("http:\/\/host"); local 108 URI uri = new URI("http:\/\/user@userhost.com:password@host"); local 115 URI uri = new URI("http:\/\/user@host"); local 122 URI uri = new URI("http:\/\/user@host:8080"); local 130 URI uri = new URI("http:\/\/user:password@host:8080"); local 138 URI uri = new URI("http:\/\/user:password@:8080"); local 147 URI uri = new URI("http:\/\/user:password@:"); local 156 URI uri = new URI("http:\/\/host\/path"); local 162 URI uri = new URI("http:\/\/host?query"); local 169 URI uri = new URI("http:\/\/host#fragment"); local 177 URI uri = new URI("http:\/\/host\/file@foo"); local 184 URI uri = new URI("http:\/\/host\/file:colon"); local 189 URI uri = new URI("http:\/\/host\/file?query\/path"); local 195 URI uri = new URI("http:\/\/host\/file?query?another"); local 201 URI uri = new URI("http:\/\/host\/file?query@at"); local 207 URI uri = new URI("http:\/\/host\/file?query:colon"); local 213 URI uri = new URI("http:\/\/host\/file#fragment?query"); local 220 URI uri = new URI("http:\/\/host\/file#fragment:80"); local 227 URI uri = new URI("http:\/\/host\/file#fragment\/path"); local 242 URI uri = new URI("http:\/\/host:\/"); local 247 URI uri = new URI("http:\/\/host:x\/"); local 254 URI uri = new URI("http:\/\/host:-2\/"); local 261 URI uri = new URI("http:\/\/host:-1\/"); local 269 URI uri = base.resolve("another"); local 278 URI uri = base.resolve("#another"); local 286 URI uri = new URI("http:\/\/host\/a\/b\/..\/c"); local 416 URI uri = base.resolve("http:g"); local 439 URI uri = new URI("file:\/\/\/\/foo"); local 446 URI uri = new URI("file:\/\/x\/foo"); local 453 URI uri = new URI("http:\/\/\/foo"); local 460 URI uri = new URI("http:\/\/\/\/foo"); local 515 URI uri = new URI("http:\/\/host:-2\/"); local 527 URI uri = new URI("http:file"); local 535 URI uri = new URI("http", "user:pa55w?rd", "host", 80, "\/doc|search", local 557 URI uri = new URI("HTTP:\/\/host\/path"); local 562 URI uri = new URI("http:\/\/\/path"); local 568 URI uri = new URI("http:\/\/?query"); local 575 URI uri = new URI("http:\/\/#fragment"); local [all...] |
/external/apache-http/src/org/apache/http/client/methods/ |
HttpDelete.java | 34 import java.net.URI; 43 * identified by the Request-URI. [...] The client cannot 58 public HttpDelete(final URI uri) { 60 setURI(uri); 64 * @throws IllegalArgumentException if the uri is invalid. 66 public HttpDelete(final String uri) { 68 setURI(URI.create(uri));
|
HttpGet.java | 34 import java.net.URI; 43 * entity) is identified by the Request-URI. If the Request-URI refers 65 public HttpGet(final URI uri) { 67 setURI(uri); 71 * @throws IllegalArgumentException if the uri is invalid. 73 public HttpGet(final String uri) { 75 setURI(URI.create(uri)); [all...] |
HttpHead.java | 34 import java.net.URI; 65 public HttpHead(final URI uri) { 67 setURI(uri); 71 * @throws IllegalArgumentException if the uri is invalid. 73 public HttpHead(final String uri) { 75 setURI(URI.create(uri));
|
HttpPost.java | 34 import java.net.URI; 44 * the Request-URI in the Request-Line. POST is designed to allow a uniform 69 public HttpPost(final URI uri) { 71 setURI(uri); 75 * @throws IllegalArgumentException if the uri is invalid. 77 public HttpPost(final String uri) { 79 setURI(URI.create(uri));
|
HttpPut.java | 34 import java.net.URI; 43 * supplied Request-URI. If the Request-URI refers to an already 61 public HttpPut(final URI uri) { 63 setURI(uri); 67 * @throws IllegalArgumentException if the uri is invalid. 69 public HttpPut(final String uri) { 71 setURI(URI.create(uri)); [all...] |
HttpTrace.java | 34 import java.net.URI; 64 public HttpTrace(final URI uri) { 66 setURI(uri); 70 * @throws IllegalArgumentException if the uri is invalid. 72 public HttpTrace(final String uri) { 74 setURI(URI.create(uri));
|
/external/chromium/net/tools/flip_server/ |
spdy_util.cc | 16 std::string EncodeURL(std::string uri, std::string host, std::string method) { 18 // TODO(mbelshe): if uri is fully qualified, need to strip protocol/host. 19 return std::string(method + "_" + uri); 23 if (uri[0] == '/') { 24 // uri is not fully qualified. 26 "http://" + host + uri, method + "_/", false); 28 filename = UrlToFilenameEncoder::Encode(uri, method + "_/", false);
|
/libcore/luni/src/main/java/java/net/ |
CookiePolicy.java | 34 public boolean shouldAccept(URI uri, HttpCookie cookie) { 43 public boolean shouldAccept(URI uri, HttpCookie cookie) { 52 public boolean shouldAccept(URI uri, HttpCookie cookie) { 53 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost()); 61 * @param uri 62 * the URI to used to determine acceptability 67 boolean shouldAccept(URI uri, HttpCookie cookie) [all...] |
CookieStore.java | 36 * A cookie may or may not has an associated URI. If not, the cookie's 38 * associated URI and no domain and path attribute are speicifed for the 39 * cookie, the given URI will indicate where this cookie comes from. 41 * If a cookie corresponding to the given URI already exists, then it is 44 * @param uri 45 * the uri associated with the specified cookie. A null value 46 * indicates the cookie is not associated with a URI 50 void add(URI uri, HttpCookie cookie); 53 * Retrieves cookies that match the specified URI. Return not expired cookies [all...] |
/external/collada/src/dae/ |
daeStandardURIResolver.cpp | 31 void printErrorMsg(const daeURI& uri) { 33 msg << "daeStandardURIResolver::resolveElement() - Failed to resolve " << uri.str() << endl; 38 daeElement* daeStandardURIResolver::resolveElement(const daeURI& uri) { 39 daeDocument* doc = uri.getReferencedDocument(); 41 dae->open(uri.str()); 42 doc = uri.getReferencedDocument(); 44 printErrorMsg(uri); 49 daeElement* elt = dae->getDatabase()->idLookup(uri.id(), doc); 51 printErrorMsg(uri);
|
/external/nist-sip/java/gov/nist/javax/sip/address/ |
RFC2396UrlDecoder.java | 48 * @param uri the path to decode 51 public static String decode(String uri) { 52 StringBuffer translatedUri = new StringBuffer(uri.length()); 53 byte[] encodedchars = new byte[uri.length() / 3]; 55 int length = uri.length(); 58 if (uri.charAt(i) == '%') { 61 while (i < length && uri.charAt(i) == '%') { 64 byte x = (byte)Integer.parseInt(uri.substring(i + 1, i + 3), 16); 67 throw new IllegalArgumentException("Illegal hex characters in pattern %" + uri.substring(i + 1, i + 3)); 85 translatedUri.append(uri.charAt(i)) [all...] |
/external/webkit/Source/WebKit/qt/declarative/ |
plugin.cpp | 30 virtual void registerTypes(const char* uri) 32 Q_ASSERT(QLatin1String(uri) == QLatin1String("QtWebKit")); 34 qmlRegisterType<QDeclarativeWebView>(uri, 1, 0, "WebView"); 36 qmlRegisterType<QDeclarativeWebView>(uri, 1, 1, "WebView");
|
/frameworks/base/include/android_runtime/ |
ActivityManager.h | 24 // Perform a ContentProvider.openFile() call for the given URI. 27 extern int openContentProviderFile(const String16& uri);
|
/frameworks/base/core/java/android/content/ |
ContentProviderResult.java | 19 import android.net.Uri; 25 * to have exactly one of {@link #uri} or {@link #count} set. 28 public final Uri uri; field in class:ContentProviderResult 31 public ContentProviderResult(Uri uri) { 32 if (uri == null) throw new IllegalArgumentException("uri must not be null"); 33 this.uri = uri; [all...] |
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/tests/ |
CrashingIconProvider.java | 21 import android.net.Uri; 42 public ParcelFileDescriptor openFile(Uri uri, String mode) { 43 if (DBG) Log.d(TAG, "openFile(" + uri + ", " + mode + ")"); 48 public int delete(Uri uri, String selection, String[] selectionArgs) { 49 if (DBG) Log.d(TAG, "delete(" + uri + ", " + selection + ", " + selectionArgs + ")"); 54 public String getType(Uri uri) { 55 if (DBG) Log.d(TAG, "getType(" + uri + ")") [all...] |
/frameworks/base/core/tests/coretests/src/android/net/ |
UriTest.java | 19 import android.net.Uri; 35 Uri.Builder builder = new Uri.Builder(); 39 Uri uri = builder.build(); local 40 assertEquals("//foo", uri.toString()); 45 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); 46 parcelAndUnparcel(Uri.fromParts("foo", "bob lee", "fragment")); 47 parcelAndUnparcel(new Uri.Builder() 56 private void parcelAndUnparcel(Uri u) 169 Uri uri = Uri.parse("http:\/\/localhost:42"); local 216 Uri uri = Uri.parse("foo:\/\/bar\/a%20a\/b%20b"); local 263 Uri uri = Uri.fromFile(f); local 270 Uri uri = Uri.parse("content:\/\/user"); local 291 Uri uri = Uri.parse("http:\/\/google.com.\/b\/c\/g"); local 298 Uri uri = Uri.parse("empty:"); local 306 Uri uri = Uri.parse("content:\/\/user"); local 312 Uri uri = Uri.parse("content:\/\/user\/a\/b"); local 348 Uri uri = Uri.parse("mailto:nobody"); local 438 Uri uri = Uri.parse(uriString); local 542 Uri uri = Uri.parse("http:\/\/test\/").buildUpon() local 553 Uri uri = Uri.parse("http:\/\/test\/").buildUpon() local 562 Uri uri; local 619 Uri uri = Uri.parse("http:\/\/www.google.com\/?=b"); local 624 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=b&&c=d"); local 629 Uri uri = Uri.parse("http:\/\/www.google.com?"); local 634 Uri uri = Uri.parse("http:\/\/www.google.com?a=b&"); local 639 Uri uri = Uri.parse("http:\/\/www.google.com\/?=b&"); local 647 Uri uri = Uri.parse("http:\/\/www.google.com?"); local 654 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=b&&c=d"); local 661 Uri uri = Uri.parse("http:\/\/test?a=1"); local 668 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=x&&c=z"); local 678 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=x&=d&c=z"); local 688 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=foo&b=&c="); local 698 Uri uri = Uri.parse("http:\/\/foo?a=bar&b=bar&c=&&d=baz&e&f&g=buzz&&&a&b=bar&h"); local 714 Uri uri = Uri.parse("http:\/\/www.google.com\/?a%20b=foo&c%20d="); local 723 Uri uri = Uri.parse("http:\/\/www.google.com\/?a%20b=foo&c%20d="); local 729 Uri uri = Uri.parse("http:\/\/www.google.com\/?a=x&b=y&c=z").buildUpon() local [all...] |
/external/nist-sip/java/javax/sip/address/ |
AddressFactory.java | 8 Address createAddress(URI uri); 9 Address createAddress(String displayName, URI uri) 11 SipURI createSipURI(String uri) throws ParseException; 13 TelURL createTelURL(String uri) throws ParseException; 14 URI createURI(String uri) throws ParseException;
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
AlertInfo.java | 53 /** URI field 55 protected GenericURI uri; field in class:AlertInfo 72 if (uri != null) { 73 encoding.append(LESS_THAN).append(uri.encode()).append(GREATER_THAN); 84 * Set the uri member 85 * @param uri URI to set 87 public void setAlertInfo(URI uri) { 88 this.uri = (GenericURI) uri [all...] |
/cts/tests/tests/net/src/android/net/cts/ |
UriTest.java | 24 import android.net.Uri; 30 @TestTargetClass(Uri.class) 36 args = {android.os.Parcel.class, android.net.Uri.class} 39 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); 40 parcelAndUnparcel(Uri.fromParts("foo", "bob lee", "fragment")); 41 parcelAndUnparcel(new Uri.Builder() 50 private void parcelAndUnparcel(Uri u) { 52 Uri.writeToParcel(p, u); 54 assertEquals(u, Uri.CREATOR.createFromParcel(p)); 58 Uri.writeToParcel(p, u) 187 Uri uri = Uri.parse("http:\/\/localhost:42"); local 311 Uri uri = Uri.fromFile(f); local 334 Uri uri = Uri.parse("content:\/\/user"); local 369 Uri uri = Uri.parse("content:\/\/user\/a\/b"); local 462 Uri uri = Uri.parse("mailto:nobody"); local 643 Uri uri = Uri.parse(uriString); local [all...] |
Uri_BuilderTest.java | 24 import android.net.Uri.Builder; 25 import android.net.Uri; 27 @TestTargetClass(Uri.Builder.class) 33 method = "Uri.Builder", 134 Uri uri = Uri.parse("http://google.com/p1?query#fragment"); local 135 Builder builder = uri.buildUpon(); 136 uri = builder.appendPath("p2").build(); 137 assertEquals("http", uri.getScheme()) [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/extensions/ |
ExtensionNamespacesManager.java | 148 * @param ns The extension namespace URI. 210 String uri = Constants.S_EXTENSIONS_JAVA_URL; local 214 m_predefExtensions.add(new ExtensionNamespaceSupport(uri, handlerClassName, 215 new Object[]{uri, lang, lib})); 217 uri = Constants.S_EXTENSIONS_OLD_JAVA_URL; 218 m_predefExtensions.add(new ExtensionNamespaceSupport(uri, handlerClassName, 219 new Object[]{uri, lang, lib})); 221 uri = Constants.S_EXTENSIONS_LOTUSXSL_JAVA_URL; 222 m_predefExtensions.add(new ExtensionNamespaceSupport(uri, handlerClassName, 223 new Object[]{uri, lang, lib})) [all...] |
/libcore/luni/src/main/java/javax/xml/xpath/ |
XPathFactory.java | 25 *<p>See {@link #newInstance(String uri)} for lookup mechanism.</p> 41 * <p>Default Object Model URI.</p> 46 * <p>Protected constructor as {@link #newInstance()}, {@link #newInstance(String uri)} 47 * or {@link #newInstance(String uri, String factoryClassName, ClassLoader classLoader)} 88 * If the system property {@link #DEFAULT_PROPERTY_NAME} + ":uri" is present, 89 * where uri is the parameter to this method, then its value is read as a class name. 122 * @param uri Identifies the underlying object model. 123 * The specification only defines the URI {@link #DEFAULT_OBJECT_MODEL_URI}, 130 * @throws NullPointerException If <code>uri</code> is <code>null</code>. 131 * @throws IllegalArgumentException If <code>uri.length() == 0</code> [all...] |
/external/chromium/net/proxy/ |
proxy_server_unittest.cc | 163 net::ProxyServer uri = local 166 EXPECT_TRUE(uri.is_valid()); 167 EXPECT_FALSE(uri.is_direct()); 168 EXPECT_EQ(tests[i].expected_uri, uri.ToURI()); 169 EXPECT_EQ(tests[i].expected_scheme, uri.scheme()); 170 EXPECT_EQ(tests[i].expected_host, uri.host_port_pair().host()); 171 EXPECT_EQ(tests[i].expected_port, uri.host_port_pair().port()); 172 EXPECT_EQ(tests[i].expected_pac_string, uri.ToPacString()); 181 // Test parsing of the special URI form "direct://". Analagous to the "DIRECT" 184 net::ProxyServer uri local 206 net::ProxyServer uri = local 224 net::ProxyServer uri = local 283 net::ProxyServer uri = net::ProxyServer::FromPacString(tests[i].input_pac); local 299 net::ProxyServer uri = net::ProxyServer::FromPacString(tests[i]); local [all...] |