java.lang.Object
java.net.URLStreamHandler
org.codelibs.jcifs.smb.http.Handler
- Direct Known Subclasses:
Handler
Deprecated.
A
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.The default HTTP port (80). -
Constructor Summary
ConstructorsConstructorDescriptionHandler(CIFSContext tc) Deprecated.Constructs a handler with the specified CIFS context. -
Method Summary
Modifier and TypeMethodDescriptionprotected intDeprecated.Returns the default HTTP port.protected URLConnectionopenConnection(URL url) Deprecated.static voidDeprecated.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 Details
-
DEFAULT_HTTP_PORT
public static final int DEFAULT_HTTP_PORTDeprecated.The default HTTP port (80).- See Also:
-
-
Constructor Details
-
Handler
Deprecated.Constructs a handler with the specified CIFS context.- Parameters:
tc- context to use
-
-
Method Details
-
setURLStreamHandlerFactory
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:
getDefaultPortin classURLStreamHandler- Returns:
- An
intcontaining the default HTTP port.
-
openConnection
Deprecated.- Specified by:
openConnectionin classURLStreamHandler- Throws:
IOException
-
NtlmHttpURLConnectionis broken by design.