org.apache.shindig.gadgets.servlet
Class GadgetsHandlerService.MetadataGadgetContext

java.lang.Object
  extended by org.apache.shindig.gadgets.GadgetContext
      extended by org.apache.shindig.gadgets.servlet.GadgetsHandlerService.MetadataGadgetContext
Enclosing class:
GadgetsHandlerService

protected class GadgetsHandlerService.MetadataGadgetContext
extends GadgetContext

GadgetContext for metadata request. Used by the gadget processor


Constructor Summary
GadgetsHandlerService.MetadataGadgetContext(GadgetsHandlerApi.MetadataRequest request)
           
 
Method Summary
 String getContainer()
           
 boolean getDebug()
           
 boolean getIgnoreCache()
           
 Locale getLocale()
           
 int getModuleId()
           
 RenderingContext getRenderingContext()
           
 SecurityToken getToken()
           
 Uri getUrl()
           
 String getView()
           
 
Methods inherited from class org.apache.shindig.gadgets.GadgetContext
getHost, getParameter, getUserAgent, getUserIp, getUserPrefs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GadgetsHandlerService.MetadataGadgetContext

public GadgetsHandlerService.MetadataGadgetContext(GadgetsHandlerApi.MetadataRequest request)
Method Detail

getUrl

public Uri getUrl()
Overrides:
getUrl in class GadgetContext
Returns:
The url for this gadget.

getContainer

public String getContainer()
Overrides:
getContainer in class GadgetContext
Returns:
The container of the current request.

getRenderingContext

public RenderingContext getRenderingContext()
Overrides:
getRenderingContext in class GadgetContext
Returns:
The rendering context for this request.

getModuleId

public int getModuleId()
Overrides:
getModuleId in class GadgetContext
Returns:
The module id for this request.

getLocale

public Locale getLocale()
Overrides:
getLocale in class GadgetContext
Returns:
The locale for this request.

getIgnoreCache

public boolean getIgnoreCache()
Overrides:
getIgnoreCache in class GadgetContext
Returns:
Whether or not to bypass caching behavior for the current request.

getDebug

public boolean getDebug()
Overrides:
getDebug in class GadgetContext
Returns:
Whether or not to show debug output.

getView

public String getView()
Overrides:
getView in class GadgetContext
Returns:
Name of view to show

getToken

public SecurityToken getToken()
Overrides:
getToken in class GadgetContext
Returns:
The token associated with this request


Copyright © 2007-2012. All Rights Reserved.