org.apache.shindig.gadgets.features
Interface FeatureResource

All Known Implementing Classes:
BrowserSpecificFeatureResource, FeatureResource.Default, FeatureResource.Simple

public interface FeatureResource

Interface yielding content/code for JS features.


Nested Class Summary
static class FeatureResource.Default
          Helper base class to avoid having to implement rarely-overridden isExternal/isProxyCacheable functionality in FeatureResource.
static class FeatureResource.Simple
           
 
Method Summary
 String getContent()
           
 String getDebugContent()
           
 boolean isExternal()
           
 boolean isProxyCacheable()
           
 

Method Detail

getContent

String getContent()
Returns:
"Normal"-mode content for the feature, eg. obfuscated JS.

getDebugContent

String getDebugContent()
Returns:
Debug-mode content for the feature.

isExternal

boolean isExternal()
Returns:
True if the content is actually a URL to be included via <script src>

isProxyCacheable

boolean isProxyCacheable()
Returns:
True if the JS can be cached by intermediary proxies or not.


Copyright © 2007-2012. All Rights Reserved.