Package org.jsoup.helper
Class AuthenticationHandler.GlobalHandler
- java.lang.Object
-
- org.jsoup.helper.AuthenticationHandler.GlobalHandler
-
- All Implemented Interfaces:
AuthenticationHandler.AuthShim
- Enclosing class:
- AuthenticationHandler
static class AuthenticationHandler.GlobalHandler extends java.lang.Object implements AuthenticationHandler.AuthShim
On Java 8 we install a system-wide Authenticator, which pulls the delegating Auth from a ThreadLocal pool.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.ThreadLocal<AuthenticationHandler>
authenticators
-
Constructor Summary
Constructors Constructor Description GlobalHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enable(RequestAuthenticator auth, java.net.HttpURLConnection con)
AuthenticationHandler
get(AuthenticationHandler helper)
void
remove()
-
-
-
Field Detail
-
authenticators
static java.lang.ThreadLocal<AuthenticationHandler> authenticators
-
-
Method Detail
-
enable
public void enable(RequestAuthenticator auth, java.net.HttpURLConnection con)
- Specified by:
enable
in interfaceAuthenticationHandler.AuthShim
-
remove
public void remove()
- Specified by:
remove
in interfaceAuthenticationHandler.AuthShim
-
get
public AuthenticationHandler get(AuthenticationHandler helper)
- Specified by:
get
in interfaceAuthenticationHandler.AuthShim
-
-