public class DefaultUrlResolver extends Object implements UrlResolver
Constructor and Description |
---|
DefaultUrlResolver() |
DefaultUrlResolver(boolean completeRelativeUrl) |
Modifier and Type | Method and Description |
---|---|
String |
compute(String url,
WebContext context)
Compute a new URL from the provided URL and the web context.
|
boolean |
isCompleteRelativeUrl() |
void |
setCompleteRelativeUrl(boolean completeRelativeUrl) |
public DefaultUrlResolver()
public DefaultUrlResolver(boolean completeRelativeUrl)
public String compute(String url, WebContext context)
UrlResolver
compute
in interface UrlResolver
url
- the provided URLcontext
- the web contextpublic boolean isCompleteRelativeUrl()
public void setCompleteRelativeUrl(boolean completeRelativeUrl)
Copyright © 2019. All rights reserved.