public class UrlResolver
extends java.lang.Object
VirtualFile
's from URL's.Modifier and Type | Method and Description |
---|---|
static VirtualFile |
resolve(java.lang.String url)
Resolve an absolute URL.
|
static VirtualFile |
resolve(java.lang.String url,
org.apache.commons.vfs.FileObject base)
Resolve a
VirtualFile using a relative or absolute URL relative to a base URL. |
static VirtualFile |
resolveFuzzy(java.lang.String url,
org.apache.commons.vfs.FileObject base)
Use a fuzzy matching algorithm to resolve a URL.
|
public static VirtualFile resolve(java.lang.String url, org.apache.commons.vfs.FileObject base) throws java.io.IOException
VirtualFile
using a relative or absolute URL relative to a base URL.url
- location to resolve.base
- Resolve location relative to this base URL.java.io.IOException
- if unable to resolve.VFS
public static VirtualFile resolve(java.lang.String url) throws java.io.IOException
url
- exact URL to a location.java.io.IOException
- if unable to resolve.VFS
public static VirtualFile resolveFuzzy(java.lang.String url, org.apache.commons.vfs.FileObject base) throws java.io.IOException
url
- location to resolve.base
- Resolve location relative to this base URL.java.io.IOException
- if unable to resolve.VFS