Handler
public class Handler
extends java.net.URLStreamHandler
URLStreamHandler
used to provide NTLM authentication
capabilities to the default HTTP handler. This acts as a wrapper,
handling authentication and passing control to the underlying
stream handler.Modifier and Type | Field | Description |
---|---|---|
static int |
DEFAULT_HTTP_PORT |
The default HTTP port (
80 ). |
Constructor | Description |
---|---|
Handler() |
Modifier and Type | Method | Description |
---|---|---|
protected int |
getDefaultPort() |
Returns the default HTTP port.
|
protected java.net.URLConnection |
openConnection(java.net.URL url) |
|
static void |
setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory factory) |
Sets the URL stream handler factory for the environment.
|
public static final int DEFAULT_HTTP_PORT
80
).public static void setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory factory)
factory
- The URL stream handler factory.protected int getDefaultPort()
getDefaultPort
in class java.net.URLStreamHandler
int
containing the default HTTP port.protected java.net.URLConnection openConnection(java.net.URL url) throws java.io.IOException
openConnection
in class java.net.URLStreamHandler
java.io.IOException