Is Java URLa thread safe class, in particular [ URL.openConnection()] ( http://java.sun.com/javase/6/docs/api/java/net/URL.html#openConnection ()) ?
URL
URL.openConnection()
In my application, I am making dozens of simultaneous HTTPS connections to the second with the same URL, and I would like to maximize the reuse of objects. However, it is not clear from the documentation what can be reused.
EDIT: I am open to using another library if necessary.
HTTP java Apache HttpClient. HTTP 1.1, , HTTP-/ .
, .
. -. .
Sun , . , ( ErrorStream). .
URL.openConnection HttpsURLConnection, HttpURLConnection. docs HttpURLConnection , . , ala HTTP 1.1.
, HttpsURLConnection URL.openConnection, .
Source: https://habr.com/ru/post/1722741/More articles:H1 tag class (alternative) - htmlКак вы выполняете контроль доступа на С#? - c#Как вставить данные без указания значения для первичного ключа с неинвазивным приростом? - mysqlWhen should I use the HtmlHelper extension methods? - asp.net-mvcSDL_image / C ++ OpenGL Program: IMG_Load () creates fuzzy images - c ++work with Delphi and Access - ms-accesslazy initialization of singleton - c #How reflector displays types when Assembly.GetTypes () fails due to the lack of an assembly reference - reflectionEntity Framework - changing the plurality of relationships - database-designGetting started with Mathematica packages - wolfram-mathematicaAll Articles