public abstract class RelativeUrlResolver
extends java.lang.Object
Constructor and Description |
---|
RelativeUrlResolver() |
Modifier and Type | Method and Description |
---|---|
abstract java.net.URL |
getURL(java.net.URL context,
java.lang.String url)
Resolve the url in the context of context.
|
java.net.URL |
getURL(java.net.URL context,
java.lang.String file,
java.lang.String url)
Relsovle file or url path relatively to a context.
|
public abstract java.net.URL getURL(java.net.URL context, java.lang.String url) throws java.net.MalformedURLException
context
- The URL of the ressource containing the reference urlurl
- a relative or absolution url stringjava.net.MalformedURLException
public java.net.URL getURL(java.net.URL context, java.lang.String file, java.lang.String url) throws java.net.MalformedURLException
context
- The URL of the ressource containing the reference file or urlfile
- a relative or absolute pathurl
- a relative or absolution url stringjava.net.MalformedURLException