Searched refs:urlConnection (Results 1 – 5 of 5) sorted by relevance
208 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in assertForbiddenRequestHeaderName() local210 urlConnection.addRequestProperty(name, "value"); in assertForbiddenRequestHeaderName()220 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in assertForbiddenRequestHeaderValue() local222 urlConnection.addRequestProperty("key", value); in assertForbiddenRequestHeaderValue()230 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in setAndReturnRequestHeaderValue() local231 urlConnection.addRequestProperty("key", value); in setAndReturnRequestHeaderValue()232 return urlConnection.getRequestProperty("key"); in setAndReturnRequestHeaderValue()239 HttpURLConnection urlConnection = (HttpURLConnection) server.getUrl("/").openConnection(); in requestHeaders() local240 urlConnection.addRequestProperty("D", "e"); in requestHeaders()241 urlConnection.addRequestProperty("D", "f"); in requestHeaders()[all …]
661 URLConnection urlConnection; in getPermissions() local664 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()
766 URLConnection urlConnection = new URL(url).openConnection(); in openUrl() local767 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()
116 URLConnection urlConnection = url.openConnection(); in parse() local117 urlConnection.connect(); in parse()119 parser.setInput(urlConnection.getInputStream(), inputEncoding); in parse()
657 URLConnection urlConnection = url.openConnection();658 Permission perm = urlConnection.getPermission();672 if (urlConnection instanceof JarURLConnection) {673 locUrl = ((JarURLConnection)urlConnection).getJarFileURL();