com.metamatrix.common.extensionmodule.protocol
Class URLFactory

java.lang.Object
  extended by com.metamatrix.common.extensionmodule.protocol.URLFactory

public class URLFactory
extends java.lang.Object

Factory to convert String urls into URL objects. This factory will instantiate both "normal" URLs as well as special MetaMatrix extension module URLs (URLs of resources in the MetaMatrix store of extension modules).


Field Summary
static java.lang.String MM_JAR_PROTOCOL
          The protocol of a MetaMatrix jar file extension module URL
 
Method Summary
static java.lang.String getFileName(java.lang.String url)
          Utility method needed by extension module framework, should not be called directly.
static java.net.URL parseURL(java.net.URL context, java.lang.String url)
          Parse the url string into a URL object within the given context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MM_JAR_PROTOCOL

public static final java.lang.String MM_JAR_PROTOCOL
The protocol of a MetaMatrix jar file extension module URL

See Also:
Constant Field Values
Method Detail

getFileName

public static java.lang.String getFileName(java.lang.String url)
Utility method needed by extension module framework, should not be called directly.


parseURL

public static java.net.URL parseURL(java.net.URL context,
                                    java.lang.String url)
                             throws java.net.MalformedURLException
Parse the url string into a URL object within the given context.

Parameters:
context - URL the context within which to parse the url string.
url - String url
Returns:
URL object
Throws:
java.net.MalformedURLException - if url String is invalid


Copyright © 2009. All Rights Reserved.