org.apache.wicket.request.resource
Class ExternalUrlResourceReference
java.lang.Object
org.apache.wicket.request.resource.ResourceReference
org.apache.wicket.request.resource.ExternalUrlResourceReference
- All Implemented Interfaces:
- Serializable, IClusterable
public class ExternalUrlResourceReference
- extends ResourceReference
A ResourceReference that can be used to render a Url to a resource out of the
current application, for example to a resource residing in a CDN (Content Delivering Network).
- Since:
- 6.0
- See Also:
- Serialized Form
Methods inherited from class org.apache.wicket.request.resource.ResourceReference |
canBeRegistered, equals, getDependencies, getExtension, getKey, getLocale, getName, getScope, getStyle, getUrlAttributes, getVariation, hashCode, toString |
ExternalUrlResourceReference
public ExternalUrlResourceReference(Url externalUrl)
- Constructor.
- Parameters:
externalUrl
- the url of the external resource
getUrl
public final Url getUrl()
- Returns:
- the url of the external resource
getResource
public IResource getResource()
- Description copied from class:
ResourceReference
- Returns the resource.
- Specified by:
getResource
in class ResourceReference
- Returns:
null
because this ResourceReference wont use an IResource to deliver
the content of the external resource. The browser will make a direct request to the
external url.
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.