Extension SDK 10.1.2

oracle.ide.net
Class IdeURLStreamHandlerFactory

java.lang.Object
  extended byoracle.ide.net.IdeURLStreamHandlerFactory
All Implemented Interfaces:
java.net.URLStreamHandlerFactory

public final class IdeURLStreamHandlerFactory
extends java.lang.Object
implements java.net.URLStreamHandlerFactory

This is the one and only URLStreamHandlerFactory that we can register with the URL class. Additional instances of URLStreamHandlerFactory can be chained together through the addFactory(URLStreamHandlerFactory) method.


Method Summary
static void addFactory(java.net.URLStreamHandlerFactory factory)
          Use this method to register additional instances of URLStreamHandlerFactory that should be used by the IDE when dealing with URLs.
 java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
           
static java.net.URLStreamHandlerFactory getInstance()
          Enforces the singleton nature of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static java.net.URLStreamHandlerFactory getInstance()
Enforces the singleton nature of this class.


addFactory

public static void addFactory(java.net.URLStreamHandlerFactory factory)
Use this method to register additional instances of URLStreamHandlerFactory that should be used by the IDE when dealing with URLs. This allows multiple factories to be used instead of just a single factory as required by URL. The factories are chained together in the order in which they are registered, which means that earlier factories get the first crack at handling an URL.


createURLStreamHandler

public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
Specified by:
createURLStreamHandler in interface java.net.URLStreamHandlerFactory

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.