@FunctionalInterface public interface UrlConnector
Modifier and Type | Method and Description |
---|---|
void |
connect(HttpURLConnection hconn)
Opens communication to an HTTP resource.
|
void connect(HttpURLConnection hconn) throws IOException
URLConnection.connect()
,
but it may optionally perform other actions as well,
such as configuring the request headers as required
and writing to the connection's output stream,
before returning.
If this object is being used with AuthManager,
it will typically be a good idea to call
setInstanceFollowRedirects(false)
,
since redirection can be handled by AuthManager.
hconn
- URL connection; on entry connect() has not yet
been called, but on exit it hasIOException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.