Yes. HTTPUrlConnection is currently official. (If by "official" you mean "a method supported by standard Java class libraries".)
Many people / groups have tried to come up with alternative ways to work with the HTTP client protocol with varying degrees of success. However, the old ("official") method still works, and for many cases it works well enough that there is no need for an alternative.
Java has a strong backward compatibility culture. If the function works, it remains at rest. Even functions that do not work properly are usually designated as "deprecated" 1 if they cannot be fixed in a backward compatible way. There is a good reason for this. Oracle makes money in Java from support contracts and specialized products. Their main customers are computer scientists. Computer scientists want the applications they wrote 20 years ago to continue to work ... without constantly interfering with things that break when the platform is updated (i.e. Java).
See @ CΓ‘ssio for information on what happens in Java 9 (next year).
1 - There are Java APIs that are deprecated in JDK 1.1 ... and are still supported.
Stephen c
source share