| Modifier and Type | Method and Description |
|---|---|
GadgetContext |
Gadget.getContext() |
| Modifier and Type | Method and Description |
|---|---|
GadgetSpec |
GadgetSpecFactory.getGadgetSpec(GadgetContext context)
Return a gadget spec for a context
|
GadgetSpec |
DefaultGadgetSpecFactory.getGadgetSpec(GadgetContext context) |
Gadget |
Gadget.setContext(GadgetContext context) |
| Constructor and Description |
|---|
GadgetContext(GadgetContext delegate) |
GadgetELResolver(GadgetContext context) |
| Modifier and Type | Method and Description |
|---|---|
List<FeatureResource> |
FeatureRegistry.getFeatureResources(GadgetContext ctx,
Collection<String> needed,
List<String> unsupported)
Helper method retrieving feature resources, including transitive dependencies.
|
List<FeatureResource> |
FeatureRegistry.getFeatureResources(GadgetContext ctx,
Collection<String> needed,
List<String> unsupported,
boolean transitive)
For the given list of needed features, retrieves all the FeatureResource objects that
contain their content and, if requested, that of their transitive dependencies.
|
| Modifier and Type | Class and Description |
|---|---|
class |
OAuthGadgetContext
GadgetContext for use when handling an OAuth request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CajaCssSanitizer.sanitize(com.google.caja.parser.css.CssTree css,
Uri linkContext,
GadgetContext gadgetContext,
ProxyUriManager importRewriter,
ProxyUriManager imageRewriter)
Sanitize the given CSS tree in-place by removing all non-whitelisted function calls
|
void |
CajaCssSanitizer.sanitize(Element styleElem,
Uri linkContext,
GadgetContext gadgetContext,
ProxyUriManager importRewriter,
ProxyUriManager imageRewriter)
Sanitize the CSS content of a style tag.
|
String |
CajaCssSanitizer.sanitize(String content,
Uri linkContext,
GadgetContext gadgetContext,
ProxyUriManager importRewriter,
ProxyUriManager imageRewriter)
Sanitize the CSS content of a style tag.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Callable<PreloadedData>> |
PipelinedDataPreloader.createPreloadTasks(GadgetContext context,
PipelinedData.Batch batch)
Create preload tasks from a batch of social and http preloads
|
PipelineExecutor.Results |
PipelineExecutor.execute(GadgetContext context,
Collection<PipelinedData> pipelines)
Executes a pipeline, or set of pipelines.
|
static HttpRequest |
HttpPreloader.newHttpRequest(GadgetContext context,
RequestAuthenticationInfo authenticationInfo) |
| Modifier and Type | Method and Description |
|---|---|
Gadget |
Processor.process(GadgetContext context)
Process a single gadget.
|
| Modifier and Type | Method and Description |
|---|---|
List<GadgetRewriter> |
GadgetRewritersProvider.getRewriters(GadgetContext context) |
RenderingResults |
Renderer.render(GadgetContext context)
Attempts to render the requested gadget.
|
| Modifier and Type | Method and Description |
|---|---|
static Gadget |
DomWalker.makeGadget(GadgetContext context) |
static List<String> |
CssResponseRewriter.rewrite(com.google.caja.parser.css.CssTree.StyleSheet styleSheet,
Uri source,
CssResponseRewriter.UriMaker uriMaker,
boolean extractImports,
GadgetContext gadgetContext)
Rewrite the CSS DOM in place.
|
List<String> |
CssResponseRewriter.rewrite(Element styleNode,
Uri source,
CssResponseRewriter.UriMaker uriMaker,
boolean extractImports,
GadgetContext gadgetContext)
Rewrite the CSS content in a style DOM node.
|
List<String> |
CssResponseRewriter.rewrite(Reader content,
Uri source,
CssResponseRewriter.UriMaker uriMaker,
Writer writer,
boolean extractImports,
GadgetContext gadgetContext)
Rewrite the given CSS content and optionally extract the import references.
|
| Modifier and Type | Class and Description |
|---|---|
protected class |
GadgetsHandlerService.MetadataGadgetContext
GadgetContext for metadata request.
|
class |
HttpGadgetContext
Implements GadgetContext using an HttpServletRequest
|
protected static class |
JsHandler.JsGadgetContext
GadgetContext for JsHandler called by FeatureRegistry when fetching the resources.
|
class |
JsonRpcGadgetContext
Extracts context from JSON input.
|
| Modifier and Type | Field and Description |
|---|---|
protected GadgetContext |
JsonRpcHandler.Job.context |
| Modifier and Type | Method and Description |
|---|---|
GadgetContext |
RpcException.getContext() |
GadgetContext |
GadgetRenderingServlet.PostGadgetRenderingParams.getContext() |
protected GadgetContext |
JsHandler.getGadgetContext(javax.servlet.http.HttpServletRequest req)
Get the GadgetContext to be used when calling FeatureRegistry.getFeatureResources.
|
| Modifier and Type | Method and Description |
|---|---|
protected JsonRpcHandler.Job |
JsonRpcHandler.createNewJob(GadgetContext context) |
protected JsHandler.JsHandlerResponse |
JsHandler.getFeatureResourcesContent(javax.servlet.http.HttpServletRequest req,
GadgetContext ctx,
Set<String> needed)
Get the content of the feature resources and push it to jsData.
|
| Constructor and Description |
|---|
GadgetRenderingServlet.PostGadgetRenderingParams(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
UriStatus urlStatus,
GadgetContext context,
RenderingResults results) |
JsonRpcHandler.Job(GadgetContext context) |
RpcException(GadgetContext context,
String message) |
RpcException(GadgetContext context,
String message,
Throwable cause) |
RpcException(GadgetContext context,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
TemplateLibrary |
TemplateLibraryFactory.loadTemplateLibrary(GadgetContext context,
Uri uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
UserPrefSubstituter.addSubstitutions(Substitutions substituter,
GadgetContext context,
GadgetSpec spec) |
void |
Substituter.addSubstitutions(Substitutions substituter,
GadgetContext context,
GadgetSpec spec)
Add the substitutions from this Substituter to the
Substitutions. |
void |
ModuleSubstituter.addSubstitutions(Substitutions substituter,
GadgetContext context,
GadgetSpec spec) |
void |
MessageSubstituter.addSubstitutions(Substitutions substituter,
GadgetContext context,
GadgetSpec spec) |
void |
BidiSubstituter.addSubstitutions(Substitutions substituter,
GadgetContext context,
GadgetSpec spec) |
GadgetSpec |
VariableSubstituter.substitute(GadgetContext context,
GadgetSpec spec)
Substitutes all hangman variables into the gadget spec.
|
Copyright © 2007-2012. All Rights Reserved.