Searched refs:uri (Results 26 - 50 of 59) sorted by relevance

123

/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/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/org/xml/sax/helpers/
H A DDefaultHandler.java219 * @param uri The Namespace URI mapped to the prefix.
224 public void startPrefixMapping (String prefix, String uri)
258 * @param uri The Namespace URI, or the empty string if the
273 public void startElement (String uri, String localName,
289 * @param uri The Namespace URI, or the empty string if the
301 public void endElement (String uri, String localName, String qName)
221 startPrefixMapping(String prefix, String uri) argument
270 startElement(String uri, String localName, String qName, Attributes attributes) argument
298 endElement(String uri, String localName, String qName) argument
H A DXMLFilterImpl.java487 * @param uri The Namespace URI.
491 public void startPrefixMapping (String prefix, String uri)
495 contentHandler.startPrefixMapping(prefix, uri);
519 * @param uri The element's Namespace URI, or the empty string.
527 public void startElement (String uri, String localName, String qName,
532 contentHandler.startElement(uri, localName, qName, atts);
540 * @param uri The element's Namespace URI, or the empty string.
547 public void endElement (String uri, String localName, String qName)
551 contentHandler.endElement(uri, localName, qName);
485 startPrefixMapping(String prefix, String uri) argument
521 startElement(String uri, String localName, String qName, Attributes atts) argument
541 endElement(String uri, String localName, String qName) argument
H A DXMLReaderAdapter.java299 * @param uri The Namespace URI being mapped to.
302 public void startPrefixMapping (String prefix, String uri)
321 * @param uri The Namespace URI.
329 public void startElement (String uri, String localName,
343 * @param uri The Namespace URI.
350 public void endElement (String uri, String localName,
300 startPrefixMapping(String prefix, String uri) argument
327 startElement(String uri, String localName, String qName, Attributes atts) argument
348 endElement(String uri, String localName, String qName) argument
/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/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/test/java/tests/org/w3c/dom/
H A DDOMTestCase.java109 String uri = actual;
117 uri = actual.substring(0, lastPound);
124 int lastQuestion = uri.lastIndexOf("?");
130 uri = actual.substring(0, lastQuestion);
137 int firstColon = uri.indexOf(":");
138 int firstSlash = uri.indexOf("/");
139 String actualPath = uri;
142 actualScheme = uri.substring(0, firstColon);
143 actualPath = uri.substring(firstColon + 1);
/libcore/luni/src/test/java/libcore/xml/
H A DSimpleParserTest.java106 public void startElement(String uri, String localName, String qName, Attributes atts) {
114 if (!"".equals(uri)) {
115 namespaces1.put(localName, uri);
128 if (!"".equals(uri)) {
129 namespaces2.put(qName, uri);
138 public void endElement(String uri, String localName, String qName) {}
144 public void startPrefixMapping(String prefix, String uri) {}
233 public void startElement (String uri, String localName,
H A DExpatSaxParserTest.java64 public void startElement(String uri, String localName,
78 public void endElement(String uri, String localName,
140 public void startElement(String uri, String localName, String qName, argument
156 public void endElement(String uri, String localName, String qName) argument
219 public void startPrefixMapping(String prefix, String uri) argument
221 prefixMappings.put(prefix, uri);
228 public void startElement(String uri, String localName, String qName, argument
243 assertSame("ns:default", uri);
268 assertSame("ns:1", uri);
296 public void endElement(String uri, Strin argument
[all...]
H A DNamespacedAttributesLookupTest.java107 String uri, String localName, String qName, Attributes attributes) {
110 * Only supply the uri+localName or qname depending on whether namespaces are
114 serialized.append(uri).append(",");
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DGeneralName.java369 String uri = (String) name;
370 int begin = uri.indexOf("://")+3;
371 int end = uri.indexOf('/', begin);
373 ? uri.substring(begin)
374 : uri.substring(begin, end);
375 uri = (String) gname.getName();
376 begin = uri.indexOf("://")+3;
377 end = uri.indexOf('/', begin);
379 ? uri.substring(begin)
380 : uri
594 checkURI(String uri) argument
[all...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestCase.java685 String uri = actual;
693 uri = actual.substring(0, lastPound);
700 int lastQuestion = uri.lastIndexOf("?");
706 uri = actual.substring(0, lastQuestion);
713 int firstColon = uri.indexOf(":");
714 int firstSlash = uri.indexOf("/");
715 String actualPath = uri;
718 actualScheme = uri.substring(0, firstColon);
719 actualPath = uri.substring(firstColon + 1);
H A DDOMTest.java169 Object uri = method.invoke(tempFile, (Class<?>) null);
170 return uri.toString();
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DNodeImpl.java315 String uri = element.getAttributeNS(
320 if (uri == null || uri.isEmpty()) {
325 if (new URI(uri).isAbsolute()) {
326 return uri;
336 return new URI(parentUri).resolve(uri).toString();
377 private String sanitizeUri(String uri) { argument
378 if (uri == null || uri.length() == 0) {
382 return new URI(uri)
541 isPrefixMappedToUri(String prefix, String uri) argument
[all...]
/libcore/luni/src/main/java/java/net/
H A DHttpCookie.java131 * Returns true if {@code cookie} should be sent to or accepted from {@code uri} with respect
135 static boolean pathMatches(HttpCookie cookie, URI uri) { argument
136 String uriPath = matchablePath(uri.getPath());
142 * Returns true if {@code cookie} should be sent to {@code uri} with respect to the cookie's
145 static boolean secureMatches(HttpCookie cookie, URI uri) { argument
146 return !cookie.getSecure() || "https".equalsIgnoreCase(uri.getScheme());
150 * Returns true if {@code cookie} should be sent to {@code uri} with respect to the cookie's
153 static boolean portMatches(HttpCookie cookie, URI uri) { argument
158 .contains(Integer.toString(uri.getEffectivePort()));
/libcore/luni/src/main/native/
H A Dorg_apache_harmony_xml_ExpatParser.cpp498 jstring uri() { function in class:ExpatElementName
528 bool matches(const char* uri, const char* localName) { argument
529 return strcmp(uri, mUri) == 0 && strcmp(localName, mLocalName) == 0;
565 * "uri|localName|prefix" (example: "http://www.w3.org/1999/xhtml|h1|html")
566 * "uri|localName" (example: "http://www.w3.org/1999/xhtml|h1")
580 if (c != NULL) { // input of the form "uri|localName|prefix"
584 } else if (b != NULL) { // input of the form "uri|localName"
605 * @param elementName "uri|localName" or "localName" for the current element
607 * names, attribute names follow the format "uri|localName" or "localName".
627 jstring uri local
659 jstring uri = parsingContext->stringStack.pop(); local
696 startNamespace(void* data, const char* prefix, const char* uri) argument
1181 ExpatAttributes_getIndex(JNIEnv* env, jobject, jlong attributePointer, jstring uri, jstring localName) argument
1228 ExpatAttributes_getValue(JNIEnv* env, jobject clazz, jlong attributePointer, jstring uri, jstring localName) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
H A DHttpURLConnectionTest.java142 public java.util.List<Proxy> select(URI uri) { argument
144 if (("localhost".equals(uri.getHost()))
145 && (server_port == uri.getPort())) {
155 public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { argument
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java122 * @param uri namespace URI of element or "" if namespace processing is
131 /*package*/ void startElement(String uri, String localName, String qName, argument
144 uri, localName, qName, this.attributes);
152 /*package*/ void endElement(String uri, String localName, String qName) argument
156 contentHandler.endElement(uri, localName, qName);
188 /*package*/ void startNamespace(String prefix, String uri) argument
192 contentHandler.startPrefixMapping(prefix, uri);
774 void startElement(String uri, String localName, String qName, argument
781 super.startElement(uri, localName, qName, attributePointer,
787 void endElement(String uri, Strin argument
[all...]
/libcore/luni/src/test/java/tests/api/javax/xml/parsers/
H A DSAXParserTestSupport.java230 public void endElement(String uri, String localName, String qName) { argument
232 sb.append(uri);
308 public void startElement(String uri, String localName, String qName, argument
310 data_startElement.append(uri);
325 public void startPrefixMapping(String prefix, String uri) { argument
326 data_startPrefixMapping.append(prefix + SEPARATOR_STRING + uri);
409 public void endElement(String uri, String localName, String qName) { argument
411 sb.append(uri);
465 public void startElement(String uri, String localName, String qName, argument
467 data_startElement.append(uri);
[all...]
H A DSAXParserFactoryTest.java378 public void startElement(String uri, String localName, String qName, argument
382 if (!uri.equals(""))
383 ns.put(qName, uri);
/libcore/luni/src/main/java/libcore/net/url/
H A DFtpURLConnection.java99 private URI uri; field in class:FtpURLConnection
119 uri = null;
121 uri = url.toURI();
177 proxyList = selector.select(uri);
198 selector.connectFailed(uri, currentProxy.address(), ioe);
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/
H A DDriver.java105 public int getIndex(String uri, String localName) { argument
108 if(pp.getAttributeNamespace(i).equals(uri)
130 public String getType(String uri, String localName) { argument
133 if(pp.getAttributeNamespace(i).equals(uri)
153 public String getValue(String uri, String localName) { argument
154 return pp.getAttributeValue(uri, localName);

Completed in 647 milliseconds

123