Searched refs:uri (Results 1 - 25 of 59) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/net/
H A DURITest.java27 URI uri = new URI("http://username:password@host:8080/directory/file?query#ref");
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());
34 assertEquals(8080, uri.getPort());
35 assertEquals("/directory/file", uri.getPath());
36 assertEquals("/directory/file", uri
[all...]
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.java80 public Map get(URI uri, Map requestHeaders) throws IOException { argument
81 getURI = uri;
86 public void put(URI uri, Map responseHeaders) throws IOException { argument
87 putURI = uri;
/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 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 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 DURI.java214 StringBuilder uri = new StringBuilder();
216 uri.append(scheme);
217 uri.append(':');
220 ALL_LEGAL_ENCODER.appendEncoded(uri, schemeSpecificPart);
223 uri.append('#');
224 ALL_LEGAL_ENCODER.appendEncoded(uri, fragment);
227 parseURI(uri.toString(), false);
247 StringBuilder uri = new StringBuilder();
249 uri.append(scheme);
250 uri
349 parseURI(String uri, boolean forceServer) argument
412 validateScheme(String uri, int end) argument
503 validateUserInfo(String uri, String userInfo, int index) argument
612 compareTo(URI uri) argument
723 create(String uri) 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 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 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 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))) {
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
/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.java120 * @param uri
128 public XPathFactory newFactory(String uri) { argument
129 if (uri == null) {
130 throw new NullPointerException("uri == null");
132 XPathFactory f = _newFactory(uri);
135 debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri);
137 debugPrintln("unable to find a factory for " + uri);
146 * @param uri identifies the object model.
148 private XPathFactory _newFactory(String uri) { argument
150 String propertyName = SERVICE_CLASS.getName() + ":" + uri;
269 loadFromServicesFile(String uri, String resourceName, InputStream in) argument
[all...]
/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
H A DAttributes2Impl.java95 public boolean isDeclared (String uri, String localName) argument
97 int index = getIndex (uri, localName);
102 + ", namespace=" + uri);
142 * @param uri The Namespace URI, or the empty string if
149 public boolean isSpecified (String uri, String localName) argument
151 int index = getIndex (uri, localName);
156 + ", namespace=" + uri);
228 * @param uri The Namespace URI, or the empty string if
240 public void addAttribute (String uri, String localName, String qName, argument
243 super.addAttribute (uri, localNam
[all...]
/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/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/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...]
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DNamespaceSupport.java289 * @param uri The Namespace URI to associate with the prefix.
296 public boolean declarePrefix (String prefix, String uri)
301 currentContext.declarePrefix(prefix, uri);
412 * @param uri the namespace URI
419 public String getPrefix (String uri)
421 return currentContext.getPrefix(uri);
442 * @param uri The Namespace URI.
448 public Enumeration getPrefixes(String uri) {
453 if (uri.equals(getURI(prefix))) {
600 * @param uri Th
292 declarePrefix(String prefix, String uri) argument
415 getPrefix(String uri) argument
444 getPrefixes(String uri) argument
597 declarePrefix(String prefix, String uri) argument
738 getPrefix(String uri) argument
[all...]
H A DAttributesImpl.java195 * @param uri The attribute's Namespace URI, or the empty
201 public int getIndex (String uri, String localName)
205 if (data[i].equals(uri) && data[i+1].equals(localName)) {
235 * @param uri The Namespace URI, or the empty string for a name
242 public String getType (String uri, String localName)
246 if (data[i].equals(uri) && data[i+1].equals(localName)) {
277 * @param uri The Namespace URI, or the empty string for a name
284 public String getValue (String uri, String localName)
288 if (data[i].equals(uri) && data[i+1].equals(localName)) {
372 * @param uri Th
199 getIndex(String uri, String localName) argument
240 getType(String uri, String localName) argument
282 getValue(String uri, String localName) argument
379 addAttribute(String uri, String localName, String qName, String type, String value) argument
413 setAttribute(int index, String uri, String localName, String qName, String type, String value) argument
466 setURI(int index, String uri) argument
[all...]
/libcore/luni/src/test/java/libcore/xml/
H A DSaxTest.java40 @Override public void startElement(String uri, String localName,
42 assertEquals("", uri);
53 @Override public void startElement(String uri, String localName,
55 assertEquals("", uri);
68 @Override public void startElement(String uri, String localName,
70 assertEquals("", uri);
81 @Override public void startElement(String uri, String localName,
83 assertEquals("http://quux", uri);
100 @Override public void startElement(String uri, String localName,
102 assertEquals("", uri);
239 startPrefixMapping(String prefix, String uri) argument
245 startElement( String uri, String localName, String qName, Attributes attributes) argument
249 endElement(String uri, String localName, String qName) argument
[all...]
/libcore/luni/src/main/java/java/io/
H A DFile.java162 * Constructs a new File using the path of the specified URI. {@code uri}
167 * @param uri
171 * if {@code uri} does not comply with the conditions above.
175 public File(URI uri) { argument
177 checkURI(uri);
178 this.path = fixSlashes(uri.getPath());
218 private static void checkURI(URI uri) { argument
219 if (!uri.isAbsolute()) {
220 throw new IllegalArgumentException("URI is not absolute: " + uri);
221 } else if (!uri
[all...]
/libcore/luni/src/test/java/tests/api/org/xml/sax/support/
H A DMockHandler.java57 public void endElement(String uri, String localName, String name) throws SAXException { argument
58 logger.add("endElement", uri, localName, name);
101 public void startElement(String uri, String localName, String name, Attributes atts) argument
103 logger.add("startElement", uri, localName, name, atts);
106 public void startPrefixMapping(String prefix, String uri) throws SAXException { argument
107 logger.add("startPrefixMapping", prefix, uri);

Completed in 262 milliseconds

123