| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractSpecFactory.SpecRetrievalFailedException |
class |
UnsupportedFeatureException
Thrown whenever GadgetFeatureRegistry gets a request for a feature that is
not registered.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
AbstractSpecFactory.fetchFromNetwork(AbstractSpecFactory.Query query)
Retrieves a spec from the network, parses, and adds it to the cache.
|
MessageBundle |
MessageBundleFactory.getBundle(GadgetSpec spec,
Locale locale,
boolean ignoreCache,
String container)
Retrieves a messagMessageBundle for the provided GadgetSpec and Locale.
|
MessageBundle |
DefaultMessageBundleFactory.getBundle(GadgetSpec spec,
Locale locale,
boolean ignoreCache,
String container) |
GadgetSpec |
GadgetSpecFactory.getGadgetSpec(GadgetContext context)
Return a gadget spec for a context
|
GadgetSpec |
DefaultGadgetSpecFactory.getGadgetSpec(GadgetContext context) |
protected T |
AbstractSpecFactory.getSpec(AbstractSpecFactory.Query query)
Attempt to fetch a spec, either from cache or from the network.
|
protected MessageBundle |
DefaultMessageBundleFactory.parse(String content,
AbstractSpecFactory.Query query) |
protected GadgetSpec |
DefaultGadgetSpecFactory.parse(String content,
AbstractSpecFactory.Query query) |
protected abstract T |
AbstractSpecFactory.parse(String content,
AbstractSpecFactory.Query query)
Parse and return a new spec object from the network.
|
org.json.JSONObject |
FeedProcessor.process(String feedUrl,
String feedXml,
boolean getSummaries,
int numEntries)
Converts feed XML to JSON.
|
| Modifier and Type | Method and Description |
|---|---|
FeatureResource |
FeatureResourceLoader.load(Uri uri,
Map<String,String> attribs)
Primary, and only public, method of FeatureResourceLoader.
|
FeatureResource |
BrowserSpecificFeatureResource.Loader.load(Uri uri,
Map<String,String> attribs) |
protected void |
FeatureRegistry.loadFeature(Uri parent,
String xml,
Map<String,org.apache.shindig.gadgets.features.FeatureRegistry.FeatureNode> featureMapBuilder)
Method that loads gadget features.
|
protected com.google.common.collect.ImmutableMap<String,org.apache.shindig.gadgets.features.FeatureRegistry.FeatureNode> |
FeatureRegistry.register(List<String> resourceList)
Reads and registers all of the features in the directory, or the file, specified by
the given resourceKey.
|
| Constructor and Description |
|---|
FeatureRegistry(FeatureResourceLoader resourceLoader,
List<String> features) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
RequestPipeline.execute(HttpRequest request)
Execute the given request.
|
HttpResponse |
DefaultRequestPipeline.execute(HttpRequest request) |
HttpResponse |
HttpFetcher.fetch(HttpRequest request)
Fetch HTTP content.
|
HttpResponse |
BasicHttpFetcher.fetch(HttpRequest request) |
protected void |
DefaultRequestPipeline.normalizeProtocol(HttpRequest request) |
| Modifier and Type | Method and Description |
|---|---|
OAuthStore.ConsumerInfo |
OAuthStore.getConsumerKeyAndSecret(SecurityToken securityToken,
String serviceName,
net.oauth.OAuthServiceProvider provider)
Retrieve OAuth consumer to use for requests.
|
OAuthStore.ConsumerInfo |
BasicOAuthStore.getConsumerKeyAndSecret(SecurityToken securityToken,
String serviceName,
net.oauth.OAuthServiceProvider provider) |
OAuthStore.TokenInfo |
OAuthStore.getTokenInfo(SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName)
Retrieve OAuth access token to use for the request.
|
void |
BasicOAuthStore.initFromConfigString(String oauthConfigStr) |
void |
OAuthStore.removeToken(SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName)
Remove the access token for the given user/gadget/service/token
|
void |
OAuthStore.setTokenInfo(SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName,
OAuthStore.TokenInfo tokenInfo)
Set the access token for the given user/gadget/service/token
|
| Constructor and Description |
|---|
OAuthArguments(AuthType auth,
javax.servlet.http.HttpServletRequest request)
Parse OAuthArguments from parameters to the makeRequest servlet.
|
OAuthArguments(AuthType auth,
Map<String,String> map)
Parse OAuthArguments from a Map of settings
|
OAuthArguments(RequestAuthenticationInfo info)
Parse OAuthArguments from parameters to Preload, proxied content rendering, and OSML tags.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
GadgetHtmlParser.parseDom(String source) |
protected abstract Document |
GadgetHtmlParser.parseDomImpl(String source)
TODO: remove the need for parseDomImpl as a parsing method.
|
void |
GadgetHtmlParser.parseFragment(String source,
Node result)
Parses a snippet of markup and appends the result as children to the
provided node.
|
protected abstract DocumentFragment |
GadgetHtmlParser.parseFragmentImpl(String source) |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
CajaCssLexerParser.parse(String content) |
com.google.caja.parser.css.CssTree.StyleSheet |
CajaCssParser.parseDom(String content)
Parse CSS content into Caja's CSS DOM model
|
com.google.caja.parser.css.CssTree.StyleSheet |
CajaCssParser.parseDom(String content,
Uri source) |
protected Document |
CajaHtmlParser.parseDomImpl(String source) |
protected DocumentFragment |
CajaHtmlParser.parseFragmentImpl(String source) |
| Modifier and Type | Method and Description |
|---|---|
protected Document |
NekoSimplifiedHtmlParser.parseDomImpl(String source) |
protected DocumentFragment |
NekoSimplifiedHtmlParser.parseFragmentImpl(String source) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
PipelinedDataPreloader.executeSocialRequest(HttpRequest request)
Hook for executing a JSON RPC fetch for social data.
|
static HttpRequest |
HttpPreloader.newHttpRequest(GadgetContext context,
RequestAuthenticationInfo authenticationInfo) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
RenderingGadgetRewriter.getLibraryConfig(Gadget gadget,
List<String> reqs)
Creates a set of all configuration needed to satisfy the requested feature set.
|
protected void |
RenderingGadgetRewriter.injectFeatureLibraries(Gadget gadget,
Node headTag,
Node firstHeadChild)
Injects javascript libraries needed to satisfy feature dependencies.
|
protected void |
RenderingGadgetRewriter.injectGadgetBeacon(Gadget gadget,
Node headTag,
Node firstHeadChild) |
protected void |
RenderingGadgetRewriter.injectMessageBundles(MessageBundle bundle,
Node scriptTag)
Injects message bundles into the gadget output.
|
ProxyUriManager.ProxyUri |
SanitizingProxyUriManager.process(Uri uri) |
String |
ProxyRenderer.render(Gadget gadget) |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponse |
ServletUtil.errorResponse(GadgetException e) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpRequest |
AccelHandler.buildHttpRequest(HttpRequest request,
ProxyUriManager.ProxyUri uriToProxyOrRewrite)
Build an HttpRequest object encapsulating the request details as requested
by the user.
|
protected HttpRequest |
MakeRequestHandler.buildHttpRequest(javax.servlet.http.HttpServletRequest request)
Generate a remote content request based on the parameters
sent from the client.
|
protected String |
MakeRequestHandler.convertResponseToJson(SecurityToken authToken,
javax.servlet.http.HttpServletRequest request,
HttpResponse results)
Format a response as JSON, including additional JSON inserted by
chained content fetchers.
|
protected HttpResponse |
AccelHandler.fetch(HttpRequest request) |
void |
MakeRequestHandler.fetch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Executes a request, returning the response as JSON to be handled by makeRequest.
|
HttpResponse |
ProxyHandler.fetch(ProxyUriManager.ProxyUri proxyUri) |
ProxyUriManager.ProxyUri |
AccelHandler.getProxyUri(HttpRequest httpRequest)
Returns the proxy uri encapsulating the request uri.
|
protected Object |
HttpRequestHandler.processFeed(HttpRequestHandler.HttpApiRequest req,
String responseBody)
Processes a feed (RSS or Atom) using FeedProcessor.
|
protected void |
MakeRequestHandler.setPostData(javax.servlet.http.HttpServletRequest request,
HttpRequest req)
Set http request post data according to servlet request.
|
protected static void |
MakeRequestHandler.setResponseHeaders(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HttpResponse results)
Sets cache control headers for the response.
|
static void |
ServletUtil.setXForwardedForHeader(HttpRequest inboundRequest,
HttpRequest req)
Sets standard forwarding headers on the proxied request.
|
static void |
ServletUtil.setXForwardedForHeader(javax.servlet.http.HttpServletRequest inboundRequest,
HttpRequest req) |
protected Object |
HttpRequestHandler.transformBody(HttpRequestHandler.HttpApiRequest request,
HttpResponse results)
Format a response as JSON, including additional JSON inserted by chained content fetchers.
|
static Uri |
ServletUtil.validateUrl(Uri urlToValidate)
Validates and normalizes the given url, ensuring that it is non-null, has
scheme http or https, and has a path value of some kind.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SpecParserException
Exceptions for Gadget Spec parsing.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TemplateParserException
Exceptions for Gadget Template parsing.
|
| Modifier and Type | Method and Description |
|---|---|
TemplateLibrary |
TemplateLibraryFactory.loadTemplateLibrary(GadgetContext context,
Uri uri) |
| Constructor and Description |
|---|
XmlTemplateLibrary(Uri uri,
Element root,
String source) |
XmlTemplateLibrary(Uri uri,
Element root,
String source,
boolean safe) |
| Modifier and Type | Method and Description |
|---|---|
static void |
UriUtils.copyRequestData(HttpRequest origRequest,
HttpRequest req)
Copies the post data from HttpServletRequest object to HttpRequest object.
|
Uri |
ProxyUriManager.ProxyUri.getFallbackUri() |
protected void |
DefaultJsUriManager.issueUriFormatError(String err) |
HttpRequest |
ProxyUriManager.ProxyUri.makeHttpRequest(Uri targetUri) |
HttpRequest |
ProxyUriBase.makeHttpRequest(Uri targetUri) |
Uri |
DefaultAccelUriManager.parseAndNormalize(HttpRequest httpRequest) |
Uri |
AccelUriManager.parseAndNormalize(HttpRequest httpRequest)
Parses and normalizes the given request uri to be proxied through accel.
|
ProxyUriManager.ProxyUri |
ProxyUriManager.process(Uri uri)
Parse and validate the proxied Uri.
|
ProxyUriManager.ProxyUri |
DefaultProxyUriManager.process(Uri uriIn) |
JsUriManager.JsUri |
JsUriManager.processExternJsUri(Uri uri)
Processes the inbound URL, for use by serving code in determining which JS to serve
and with what caching properties.
|
JsUriManager.JsUri |
DefaultJsUriManager.processExternJsUri(Uri uri)
Essentially pulls apart a Uri created by makeExternJsUri, validating its
contents, especially the version key.
|
Integer |
ProxyUriBase.translateStatusRefresh(int longVal,
int defaultVal) |
| Modifier and Type | Method and Description |
|---|---|
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.