org.apache.shindig.gadgets.features
Class FeatureResource.Default

java.lang.Object
  extended by org.apache.shindig.gadgets.features.FeatureResource.Default
All Implemented Interfaces:
FeatureResource
Direct Known Subclasses:
FeatureResource.Simple
Enclosing interface:
FeatureResource

public abstract static class FeatureResource.Default
extends Object
implements FeatureResource

Helper base class to avoid having to implement rarely-overridden isExternal/isProxyCacheable functionality in FeatureResource.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.shindig.gadgets.features.FeatureResource
FeatureResource.Default, FeatureResource.Simple
 
Constructor Summary
FeatureResource.Default()
           
 
Method Summary
 boolean isExternal()
           
 boolean isProxyCacheable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.shindig.gadgets.features.FeatureResource
getContent, getDebugContent
 

Constructor Detail

FeatureResource.Default

public FeatureResource.Default()
Method Detail

isExternal

public boolean isExternal()
Specified by:
isExternal in interface FeatureResource
Returns:
True if the content is actually a URL to be included via <script src>

isProxyCacheable

public boolean isProxyCacheable()
Specified by:
isProxyCacheable in interface FeatureResource
Returns:
True if the JS can be cached by intermediary proxies or not.


Copyright © 2007-2012. All Rights Reserved.