Home
last modified time | relevance | path

Searched refs:urlConnection (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java208 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in assertForbiddenRequestHeaderName() local
210 urlConnection.addRequestProperty(name, "value"); in assertForbiddenRequestHeaderName()
220 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in assertForbiddenRequestHeaderValue() local
222 urlConnection.addRequestProperty("key", value); in assertForbiddenRequestHeaderValue()
230 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in setAndReturnRequestHeaderValue() local
231 urlConnection.addRequestProperty("key", value); in setAndReturnRequestHeaderValue()
232 return urlConnection.getRequestProperty("key"); in setAndReturnRequestHeaderValue()
239 HttpURLConnection urlConnection = (HttpURLConnection) server.getUrl("/").openConnection(); in requestHeaders() local
240 urlConnection.addRequestProperty("D", "e"); in requestHeaders()
241 urlConnection.addRequestProperty("D", "f"); in requestHeaders()
[all …]
/libcore/ojluni/src/main/java/java/net/
DURLClassLoader.java661 URLConnection urlConnection; in getPermissions() local
664 urlConnection = url.openConnection(); in getPermissions()
665 p = urlConnection.getPermission(); in getPermissions()
668 urlConnection = null; in getPermissions()
693 if (urlConnection instanceof JarURLConnection) { in getPermissions()
694 locUrl = ((JarURLConnection)urlConnection).getJarFileURL(); in getPermissions()
/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatParser.java766 URLConnection urlConnection = new URL(url).openConnection(); in openUrl() local
767 urlConnection.setConnectTimeout(TIMEOUT); in openUrl()
768 urlConnection.setReadTimeout(TIMEOUT); in openUrl()
769 urlConnection.setDoInput(true); in openUrl()
770 urlConnection.setDoOutput(false); in openUrl()
771 return urlConnection.getInputStream(); in openUrl()
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DDocumentBuilderImpl.java116 URLConnection urlConnection = url.openConnection(); in parse() local
117 urlConnection.connect(); in parse()
119 parser.setInput(urlConnection.getInputStream(), inputEncoding); in parse()
/libcore/ojluni/src/main/java/sun/misc/
DURLClassPath.java657 URLConnection urlConnection = url.openConnection();
658 Permission perm = urlConnection.getPermission();
672 if (urlConnection instanceof JarURLConnection) {
673 locUrl = ((JarURLConnection)urlConnection).getJarFileURL();