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)
Resolve 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 resource containing the reference urlurl - a relative or absolution url stringjava.net.MalformedURLException - if url is wrongpublic 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 resource containing the reference file or urlfile - a relative or absolute pathurl - a relative or absolution url stringjava.net.MalformedURLException - if url is wrongCopyright ©2007-2024 The Apache Software Foundation, Licensed under Apache License, Version 2.0.