Searched defs:uri (Results 1 - 25 of 54) sorted by relevance

123

/libcore/luni/src/main/java/java/net/
H A DCookiePolicy.java34 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
67 boolean shouldAccept(URI uri, HttpCookie cookie); argument
H A DCookieHandler.java47 * @param uri
55 public abstract Map<String, List<String>> get(URI uri, argument
62 * @param uri
69 public abstract void put(URI uri, Map<String, List<String>> responseHeaders) argument
H A DCookieStore.java44 * @param uri
45 * the uri associated with the specified cookie. A null value
50 void add(URI uri, HttpCookie cookie); argument
56 * @param uri
57 * the uri this cookie associated with. If null, this cookie will
62 * if uri is null
64 List<HttpCookie> get(URI uri); argument
86 * @param uri
87 * the uri associated with the specified cookie. If the cookie is
88 * not associated with an URI when added, uri shoul
95 remove(URI uri, HttpCookie cookie) argument
[all...]
H A DCookieStoreImpl.java34 public synchronized void add(URI uri, HttpCookie cookie) { argument
39 uri = cookiesUri(uri);
40 List<HttpCookie> cookies = map.get(uri);
43 map.put(uri, cookies);
50 private URI cookiesUri(URI uri) { argument
51 if (uri == null) {
55 return new URI("http", uri.getHost(), null, null);
57 return uri; // probably a URI with no host
61 public synchronized List<HttpCookie> get(URI uri) { argument
125 remove(URI uri, HttpCookie cookie) argument
[all...]
H A DProxySelector.java112 * Returns the proxy servers to use on connections to {@code uri}. This list
115 * @throws IllegalArgumentException if {@code uri} is null.
117 public abstract List<Proxy> select(URI uri); argument
123 * @param uri the URI to which the connection could not be established.
129 public abstract void connectFailed(URI uri, SocketAddress address, IOException failure); argument
H A DResponseCache.java51 * @param uri
64 public abstract CacheResponse get(URI uri, String requestMethod, argument
73 * @param uri
84 public abstract CacheRequest put(URI uri, URLConnection connection) throws IOException; argument
H A DCookieManager.java93 * Searches and gets all cookies in the cache by the specified uri in the
96 * @param uri
97 * the specified uri to search for
105 public Map<String, List<String>> get(URI uri, argument
107 if (uri == null || requestHeaders == null) {
112 for (HttpCookie cookie : store.get(uri)) {
113 if (HttpCookie.pathMatches(cookie, uri)
114 && HttpCookie.secureMatches(cookie, uri)
115 && HttpCookie.portMatches(cookie, uri)) {
148 * Sets cookies according to uri an
158 put(URI uri, Map<String, List<String>> responseHeaders) argument
[all...]
H A DProxySelectorImpl.java25 @Override public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { argument
26 if (uri == null || sa == null || ioe == null) {
31 @Override public List<Proxy> select(URI uri) { argument
32 return Collections.singletonList(selectOneProxy(uri));
35 private Proxy selectOneProxy(URI uri) { argument
36 if (uri == null) {
37 throw new IllegalArgumentException("uri == null");
39 String scheme = uri.getScheme();
67 && isNonProxyHost(uri.getHost(), System.getProperty(nonProxyHostsKey))) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DCookieHandlerTest.java53 public Map get(URI uri, Map requestHeaders) throws IOException { argument
57 public void put(URI uri, Map responseHeaders) throws IOException { argument
H A DCookieManagerTest.java35 private static void checkValidParams4Get(URI uri, argument
39 manager.get(uri, map);
47 private static void checkValidParams4Put(URI uri, argument
51 manager.put(uri, map);
99 URI uri = new URI(cookies[i][j]);
100 manager.put(uri, responseHeaders);
138 // requires path of cookie is the prefix of uri
139 // domain of cookie must match that of uri
154 // requires path of cookie is the prefix of uri
231 public void add(URI uri, HttpCooki
[all...]
/libcore/luni/src/main/java/org/xml/sax/
H A DAttributes.java180 * @param uri The Namespace URI, or the empty string if
186 public int getIndex (String uri, String localName);
205 * @param uri The Namespace URI, or the empty String if the
212 public abstract String getType (String uri, String localName);
235 * @param uri The Namespace URI, or the empty String if the
241 public abstract String getValue (String uri, String localName);
184 getIndex(String uri, String localName) argument
210 getType(String uri, String localName) argument
239 getValue(String uri, String localName) argument
H A DContentHandler.java163 * @param uri the Namespace URI the prefix is mapped to
169 public void startPrefixMapping (String prefix, String uri) argument
239 * @param uri the Namespace URI, or the empty string if the
257 public void startElement (String uri, String localName, argument
272 * @param uri the Namespace URI, or the empty string if the
283 public void endElement (String uri, String localName, argument
/libcore/luni/src/main/java/org/xml/sax/ext/
H A DAttributes2.java80 * @param uri The Namespace URI, or the empty string if
88 public boolean isDeclared (String uri, String localName); argument
111 * @param uri The Namespace URI, or the empty string if
119 public boolean isSpecified (String uri, String localName); argument
/libcore/luni/src/test/java/libcore/java/net/
H A DOldAndroidURITest.java32 URI uri = new URI(str);
33 assertEquals(host, uri.getHost());
34 assertEquals(path, uri.getPath());
35 assertEquals(absolute, uri.isAbsolute());
44 private static void resolve(String base, String uri, String expected) { argument
46 URI resolved = b.resolve(uri);
H A DOldCookieHandlerTest.java70 public Map get(URI uri, Map requestHeaders) throws IOException { argument
75 public void put(URI uri, Map responseHeaders) throws IOException { argument
/libcore/benchmarks/src/benchmarks/regression/
H A DSSLSocketBenchmark.java46 WebSite(String uri) { argument
48 URL url = new URL(uri);
62 this.request = ("GET " + uri + " HTTP/1.0\r\n"
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMLocatorImpl.java28 private final String uri; field in class:DOMLocatorImpl
36 this.uri = src.getUri();
81 return uri;
/libcore/luni/src/main/java/javax/xml/xpath/
H A DXPathFactory.java25 *<p>See {@link #newInstance(String uri)} for lookup mechanism.</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.
130 * @throws NullPointerException If <code>uri</code> is <code>null</code>.
131 * @throws IllegalArgumentException If <code>uri.length() == 0</code>.
133 public static final XPathFactory newInstance(final String uri) argument
135 if (uri
165 newInstance(String uri, String factoryClassName, ClassLoader classLoader) argument
[all...]
H A DXPathFactoryFinder.java135 * @param uri
143 public XPathFactory newFactory(String uri) { argument
144 if (uri == null) {
145 throw new NullPointerException("uri == null");
147 XPathFactory f = _newFactory(uri);
150 debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri);
152 debugPrintln("unable to find a factory for " + uri);
161 * @param uri identifies the object model.
163 private XPathFactory _newFactory(String uri) { argument
165 String propertyName = SERVICE_CLASS.getName() + ":" + uri;
266 loadFromServicesFile(String uri, String resourceName, InputStream in) argument
[all...]
/libcore/luni/src/main/java/org/w3c/dom/ls/
H A DLSSerializer.java400 * and <code>LSOutput.systemId</code> set to the <code>uri</code>
403 * @param uri The URI to write to.
416 String uri)
415 writeToURI(Node nodeArg, String uri) argument
H A DLSParser.java97 * <code>"pi-base-uri-not-preserved" [warning]</code></dt>
323 * @param uri The location of the XML document to be read.
339 public Document parseURI(String uri) argument
/libcore/luni/src/main/java/javax/xml/parsers/
H A DDocumentBuilder.java141 * @param uri The location of the content to be parsed.
148 public Document parse(String uri) argument
150 if (uri == null) {
154 InputSource in = new InputSource(uri);
H A DSAXParser.java226 * @param uri The location of the content to be parsed.
229 * @throws IllegalArgumentException If the uri is null.
235 public void parse(String uri, HandlerBase hb) argument
237 if (uri == null) {
238 throw new IllegalArgumentException("uri cannot be null");
241 InputSource input = new InputSource(uri);
250 * @param uri The location of the content to be parsed.
253 * @throws IllegalArgumentException If the uri is null.
259 public void parse(String uri, DefaultHandler dh) argument
261 if (uri
[all...]
/libcore/luni/src/main/java/libcore/net/
H A DUriCodec.java42 public final String validate(String uri, int start, int end, String name) argument
45 char ch = uri.charAt(i);
53 throw new URISyntaxException(uri, "Incomplete % sequence in " + name, i);
55 int d1 = hexToInt(uri.charAt(i + 1));
56 int d2 = hexToInt(uri.charAt(i + 2));
58 throw new URISyntaxException(uri, "Invalid % sequence: "
59 + uri.substring(i, i + 3) + " in " + name, i);
63 throw new URISyntaxException(uri, "Illegal character in " + name, i);
66 return uri.substring(start, end);
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatAttributes.java77 public int getIndex(String uri, String localName) { argument
78 if (uri == null) {
79 throw new NullPointerException("uri == null");
88 return getIndex(pointer, uri, localName);
102 public String getType(String uri, String localName) { argument
103 if (uri == null) {
104 throw new NullPointerException("uri == null");
109 return getIndex(uri, localName) == -1 ? null : CDATA;
116 public String getValue(String uri, String localName) { argument
117 if (uri
145 getIndex(long attributePointer, String uri, String localName) argument
147 getValue(long attributePointer, String uri, String localName) argument
[all...]

Completed in 195 milliseconds

123