public class HttpsURLStreamHandlerFactory
extends java.lang.Object
implements java.net.URLStreamHandlerFactory
java.net
APIs
via
URL.setURLStreamHandlerFactory(new HttpsURLStreamHandlerFactory());The
setURLStreamHandlerFactory()
call can be executed only
once per Java VM invocation. In order to allow you to use additional
custom protocols this factory class allows you to register them with it.
Other methods for registering HTTPS URLs are described in the companion
document.
Note that there is a separate document describing the use of HTTPS
with iSaSiLk in more detail, it is called https.html
and
provided in your iSaSiLk installation directory.
HttpsURLConnection
,
Handler
Constructor and Description |
---|
HttpsURLStreamHandlerFactory()
Create a new HttpsURLStreamHandlerFactory().
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(java.lang.String protocol,
java.net.URLStreamHandler handler)
Add an additional URLStreamHandler.
|
java.net.URLStreamHandler |
createURLStreamHandler(java.lang.String protocol)
Return a URLStreamHandler for the given protocol or null.
|
public HttpsURLStreamHandlerFactory()
public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
createURLStreamHandler
in interface java.net.URLStreamHandlerFactory
public void addHandler(java.lang.String protocol, java.net.URLStreamHandler handler)