Package org.eclipse.equinox.plurl.impl
Class PlurlImpl
java.lang.Object
org.eclipse.equinox.plurl.impl.PlurlImpl
- All Implemented Interfaces:
Plurl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic interfaceclassclassclassclass -
Field Summary
Fields inherited from interface org.eclipse.equinox.plurl.Plurl
PLURL_ADD_CONTENT_HANDLER_FACTORY, PLURL_ADD_URL_STREAM_HANDLER_FACTORY, PLURL_FORBID_NOTHING, PLURL_OP, PLURL_PROTOCOL, PLURL_REMOVE_CONTENT_HANDLER_FACTORY, PLURL_REMOVE_URL_STREAM_HANDLER_FACTORY -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PlurlImpl
public PlurlImpl()
-
-
Method Details
-
install
Description copied from interface:PlurlInstalls plurl factories into the JVM singletons. If plurl factories are already installed then this is a no-op. If the plurl factories cannot be installed then anIllegalStateExceptionis thrown.When this method returns without throwing an exception then the following will be true:
- The singleton
URL.setURLStreamHandlerFactory(URLStreamHandlerFactory)is set with a plurl implementation which delegates to thePlurlStreamHandlerFactoryobjects that have beenadded. - The singleton
URLConnection.setContentHandlerFactory(ContentHandlerFactory)is set with a plurl implementation which delegates to thePlurlContentHandlerFactoryobjects that have beenadded. - The plurl protocol is available for creating
URLobjects.
- Specified by:
installin interfacePlurl- Parameters:
forbidden- builtin JVM protocols that cannot be overridden by plurl. If no forbidden protocols are specified then the default forbidden protocols are 'jar', 'jmod', 'file', and 'jrt'. To forbid no protocols then use the valuePlurl.PLURL_FORBID_NOTHING
- The singleton
-