| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static volatile TomcatURLStreamHandlerFactory | |
| private final boolean | |
| private final List | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | addUserFactory(URLStreamHandlerFactory
The user provided factory to add to the factories Tomcat has already registered factory)Since the JVM only allows a single call to |
| public URLStreamHandler | createURLStreamHandler(String
the protocol (" protocol)ftp",
"http", "nntp", etc.).Implements java. Creates a new |
| public static boolean | Returns: true if the factory is already disabled or was successfully disabled as a result of this
call. false if the factory was already registered prior to this call.Prevent this this factory from registering with the JVM. |
| public static TomcatURLStreamHandlerFactory | Returns: A reference to the singleton instanceObtain a reference to the singleton instance. |
| private static TomcatURLStreamHandlerFactory | |
| public boolean | |
| public static boolean | Returns: true if the factory is already registered with the JVM or was successfully registered as a
result of this call. false if the factory was disabled prior to this call.Register this factory with the JVM. |
| public static void | release(ClassLoader
The class loader to release classLoader)Release references to any user provided factories that have been loaded using the provided class loader. |
| CLASSPATH_PROTOCOL | back to summary |
|---|---|
| private static final String CLASSPATH_PROTOCOL | |
| instance | back to summary |
|---|---|
| private static volatile TomcatURLStreamHandlerFactory instance | |
| registered | back to summary |
|---|---|
| private final boolean registered | |
| userFactories | back to summary |
|---|---|
| private final List<URLStreamHandlerFactory> userFactories | |
| WAR_PROTOCOL | back to summary |
|---|---|
| private static final String WAR_PROTOCOL | |
| TomcatURLStreamHandlerFactory | back to summary |
|---|---|
| private TomcatURLStreamHandlerFactory(boolean register) | |
| addUserFactory | back to summary |
|---|---|
| public void addUserFactory(URLStreamHandlerFactory factory) Since the JVM only allows a single call to
| |
| createURLStreamHandler | back to summary |
|---|---|
| public URLStreamHandler createURLStreamHandler(String protocol) Implements java. Doc from java. Creates a new
| |
| disable | back to summary |
|---|---|
| public static boolean disable() Prevent this this factory from registering with the JVM. May be called more than once.
| |
| getInstance | back to summary |
|---|---|
| public static TomcatURLStreamHandlerFactory getInstance() Obtain a reference to the singleton instance. It is recommended that callers check the value of
| |
| getInstanceInternal | back to summary |
|---|---|
| private static TomcatURLStreamHandlerFactory getInstanceInternal(boolean register) | |
| isRegistered | back to summary |
|---|---|
| public boolean isRegistered() | |
| register | back to summary |
|---|---|
| public static boolean register() Register this factory with the JVM. May be called more than once. The implementation ensures that registration only occurs once.
| |
| release | back to summary |
|---|---|
| public static void release(ClassLoader classLoader) Release references to any user provided factories that have been loaded using the provided class loader. Called during web application stop to prevent memory leaks.
| |