public class UrlResourceReference extends ResourceReference
ResourceReference.Key, ResourceReference.LambdaResourceReference, ResourceReference.UrlAttributes
Constructor and Description |
---|
UrlResourceReference(Url url)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
IResource |
getResource()
Returns the resource.
|
Url |
getUrl() |
boolean |
isContextRelative() |
UrlResourceReference |
setContextRelative(boolean contextRelative) |
String |
toString() |
canBeRegistered, equals, getDependencies, getExtension, getKey, getLocale, getName, getScope, getStyle, getUrlAttributes, getVariation, hashCode, of, of
public UrlResourceReference(Url url)
url
- the url of the external resourcepublic final Url getUrl()
public final IResource getResource()
ResourceReference
getResource
in class ResourceReference
null
because this ResourceReference won't use an IResource to deliver the
content of the external resource. The browser will make a direct request to the
external url.public UrlResourceReference setContextRelative(boolean contextRelative)
public boolean isContextRelative()
public String toString()
toString
in class ResourceReference
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.