public interface HttpURLConnectionAuthenticator extends HttpAuthenticator
Some implementations of this interface will need to temporarily mutate global state and therefore must be closed in a finally statement or try-with-resources block.
Modifier and Type | Method and Description |
---|---|
void |
configureConnection(java.net.HttpURLConnection conn)
Perform whatever actions are required to the HttpURLConnection after it's been opened (setting custom headers, etc).
|
close, setup
void configureConnection(java.net.HttpURLConnection conn) throws java.lang.Exception
java.lang.Exception