org.apache.wicket.request.resource
Class ExternalUrlResourceReference

java.lang.Object
  extended by org.apache.wicket.request.resource.ResourceReference
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference
ResourceReference.Key, ResourceReference.UrlAttributes
 
Constructor Summary
ExternalUrlResourceReference(Url externalUrl)
          Constructor.
 
Method Summary
 IResource getResource()
          Returns the resource.
 Url getUrl()
           
 
Methods inherited from class org.apache.wicket.request.resource.ResourceReference
canBeRegistered, equals, getDependencies, getExtension, getKey, getLocale, getName, getScope, getStyle, getUrlAttributes, getVariation, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExternalUrlResourceReference

public ExternalUrlResourceReference(Url externalUrl)
Constructor.

Parameters:
externalUrl - the url of the external resource
Method Detail

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.