Package jcifs.http
Class Handler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- jcifs.http.Handler
-
- Direct Known Subclasses:
Handler
@Deprecated public class Handler extends URLStreamHandler
Deprecated.NtlmHttpURLConnection
is broken by design.AURLStreamHandler
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.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_HTTP_PORT
Deprecated.The default HTTP port (80
).
-
Constructor Summary
Constructors Constructor Description Handler(CIFSContext tc)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected int
getDefaultPort()
Deprecated.Returns the default HTTP port.protected URLConnection
openConnection(URL url)
Deprecated.static void
setURLStreamHandlerFactory(URLStreamHandlerFactory factory)
Deprecated.Sets the URL stream handler factory for the environment.-
Methods inherited from class java.net.URLStreamHandler
equals, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Field Detail
-
DEFAULT_HTTP_PORT
public static final int DEFAULT_HTTP_PORT
Deprecated.The default HTTP port (80
).- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Handler
public Handler(CIFSContext tc)
Deprecated.- Parameters:
tc
- context to use
-
-
Method Detail
-
setURLStreamHandlerFactory
public static void setURLStreamHandlerFactory(URLStreamHandlerFactory factory)
Deprecated.Sets the URL stream handler factory for the environment. This allows specification of the factory used in creating underlying stream handlers. This can be called once per JVM instance.- Parameters:
factory
- The URL stream handler factory.
-
getDefaultPort
protected int getDefaultPort()
Deprecated.Returns the default HTTP port.- Overrides:
getDefaultPort
in classURLStreamHandler
- Returns:
- An
int
containing the default HTTP port.
-
openConnection
protected URLConnection openConnection(URL url) throws IOException
Deprecated.- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
-
-