|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.common.extensionmodule.protocol.URLFactory
public class URLFactory
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.lang.String url)
Parse the url string into a URL object |
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. |
static java.net.URL[] |
parseURLs(java.util.List urls)
Parse the List of string urls into an array of URL objects |
static java.net.URL[] |
parseURLs(java.lang.String delimitedURLs,
java.lang.String delimiter)
Parse the single delimited String of URLs into an array of URL objects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MM_JAR_PROTOCOL
Method Detail |
---|
public static java.lang.String getFileName(java.lang.String url)
public static java.net.URL parseURL(java.net.URL context, java.lang.String url) throws java.net.MalformedURLException
context
- URL the context within which to parse the url string.url
- String url
java.net.MalformedURLException
- if url String is invalidpublic static java.net.URL parseURL(java.lang.String url) throws java.net.MalformedURLException
url
- String url
java.net.MalformedURLException
- if url String is invalidpublic static java.net.URL[] parseURLs(java.util.List urls) throws java.net.MalformedURLException
urls
- List of String urls
java.net.MalformedURLException
- if any of the url Strings
are invalidpublic static java.net.URL[] parseURLs(java.lang.String delimitedURLs, java.lang.String delimiter) throws java.net.MalformedURLException
delimitedURLs
- a single String of delimiter-separated URL stringsdelimiter
- delimiter of tokens in delmitedURLs - if this is null, a single
whitespace will be assumed as the delimiter
java.net.MalformedURLException
- if any of the url Strings are invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |