| 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,
String view)
Retrieves a messagMessageBundle for the provided GadgetSpec and Locale.
|
MessageBundle |
DefaultMessageBundleFactory.getBundle(GadgetSpec spec,
Locale locale,
boolean ignoreCache,
String container,
String view) |
GadgetSpec |
GadgetSpecFactory.getGadgetSpec(GadgetContext context)
Return a gadget spec for a context
|
GadgetSpec |
DefaultGadgetSpecFactory.getGadgetSpec(GadgetContext context) |
Uri |
GadgetSpecFactory.getGadgetUri(GadgetContext context) |
Uri |
DefaultGadgetSpecFactory.getGadgetUri(GadgetContext context) |
String |
LockedDomainService.getLockedDomainForGadget(Gadget gadget,
String container)
Calculate the locked domain for a particular gadget on a particular
container.
|
String |
HashLockedDomainService.getLockedDomainForGadget(Gadget gadget,
String container) |
abstract String |
AbstractLockedDomainService.getLockedDomainForGadget(Gadget gadget,
String container) |
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.
|
JSONObject |
FeedProcessorImpl.process(String feedUrl,
String feedXml,
boolean getSummaries,
int numEntries)
Converts feed XML to JSON.
|
JSONObject |
FeedProcessor.process(String feedUrl,
String feedXml,
boolean getSummaries,
int numEntries)
Converts feed XML to JSON.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicGadgetAdminStore.init(String store)
Inits the store from a JSON String representing the gadget administration information.
|
| Modifier and Type | Method and Description |
|---|---|
TestFeatureRegistry |
TestFeatureRegistry.Builder.build() |
TestFeatureRegistry |
TestFeatureRegistry.Builder.build(String useFeature) |
FeatureRegistry |
FeatureRegistryProvider.get(String repository) |
FeatureRegistry |
DefaultFeatureRegistryProvider.get(String repository) |
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,
CacheProvider cacheProvider,
List<String> features,
FeatureFileSystem fileSystem)
Construct a new FeatureRegistry, using resourceLoader to load actual resources,
and loading data from the list of features provided, each of which points to a
directory (whose .xml files will be scanned), file (interpreted as feature.xml),
or resource (interpreted as feature.xml).
|
FeatureRegistry(FeatureResourceLoader resourceLoader,
CacheProvider cacheProvider,
List<String> features,
FeatureFileSystem fileSystem,
String repository) |
| Modifier and Type | Method and Description |
|---|---|
GadgetException |
MultipleResourceHttpFetcher.RequestContext.getGadgetException() |
| 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 HttpResponse |
DefaultRequestPipeline.fetchResponse(HttpRequest request)
Fetch the response from the network using the right fetcher
Override this if you need to extend the current behavior of supported auth type.
|
protected HttpResponse |
DefaultRequestPipeline.fixFetchedResponse(HttpRequest request,
HttpResponse fetchedResponse,
HttpResponse invalidatedResponse,
HttpResponse staleResponse)
Attempt to "fix" the response by checking its validity and adding additional metadata
Override this if you need to add more processing to the HttpResponse before being cached and
returned.
|
protected void |
DefaultRequestPipeline.normalizeProtocol(HttpRequest request)
Normalizing the HttpRequest object to verify the validity of the request.
|
| Constructor and Description |
|---|
MultipleResourceHttpFetcher.RequestContext(HttpRequest httpReq,
HttpResponse httpResp,
GadgetException ge) |
| Modifier and Type | Method and Description |
|---|---|
JsRequest |
JsRequestBuilder.build(javax.servlet.http.HttpServletRequest request)
Builds a
JsRequest instance from the given request object. |
| 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 |
|---|---|
void |
OAuth2Store.clearAccessorCache()
Clears all currently cached
OAuth2Accessors. |
void |
BasicOAuth2Store.clearAccessorCache() |
boolean |
OAuth2Store.clearCache()
Clears any in-memory caching of OAuth2Accessors or Tokens.
|
boolean |
BasicOAuth2Store.clearCache() |
void |
OAuth2Store.clearClientCache()
Clears all currently cache
OAuth2Clients. |
void |
BasicOAuth2Store.clearClientCache() |
void |
OAuth2Store.clearTokenCache()
Clears all currently cached
OAuth2Tokens. |
void |
BasicOAuth2Store.clearTokenCache() |
OAuth2Client |
BasicOAuth2Store.getClient(String gadgetUri,
String serviceName) |
protected String |
BasicOAuth2Store.getGadgetUri(String gadgetUri,
String serviceName) |
OAuth2Accessor |
OAuth2Store.getOAuth2Accessor(String gadgetUri,
String serviceName,
String user,
String scope)
Will look for an accessor with the supplied mapping and return it.
|
OAuth2Accessor |
BasicOAuth2Store.getOAuth2Accessor(String gadgetUri,
String serviceName,
String user,
String scope) |
OAuth2Token |
OAuth2Store.getToken(String gadgetUri,
String serviceName,
String user,
String scope,
OAuth2Token.Type type)
Gets a token, if it exists, from the store.
|
OAuth2Token |
BasicOAuth2Store.getToken(String gadgetUri,
String serviceName,
String user,
String scope,
OAuth2Token.Type type) |
boolean |
OAuth2Store.init()
Cues the store to clear it's current state and reload from persistence.
|
boolean |
BasicOAuth2Store.init() |
OAuth2Token |
OAuth2Store.removeToken(OAuth2Token token)
Removes an
OAuth2Token from the store. |
OAuth2Token |
BasicOAuth2Store.removeToken(OAuth2Token token) |
void |
OAuth2Store.setToken(OAuth2Token token)
Either inserts updates an
OAuth2Token in the store. |
void |
BasicOAuth2Store.setToken(OAuth2Token token) |
| Constructor and Description |
|---|
OAuth2Arguments(javax.servlet.http.HttpServletRequest request)
Public constructor to parse OAuth2Arguments from a
HttpServletRequest |
| Modifier and Type | Class and Description |
|---|---|
class |
OAuth2EncryptionException
Subclass of
OAuth2PersistenceException for secret
encryption/decryption issues. |
| 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) |
Document |
VanillaCajaHtmlParser.parseDom(String source) |
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 |
VanillaCajaHtmlParser.parseDomImpl(String source) |
protected Document |
CajaHtmlParser.parseDomImpl(String source) |
protected DocumentFragment |
VanillaCajaHtmlParser.parseFragmentImpl(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 void |
RenderingGadgetRewriter.checkRequiredFeatures(Gadget gadget,
FeatureRegistry featureRegistry)
Check that all gadget required features exists
|
protected String |
RenderingGadgetRewriter.getFeaturesContent(JsUriManager.JsUri jsUri)
Get the JS content for a request (JsUri)
|
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.
|
protected void |
RenderingGadgetRewriter.injectScript(Collection<String> libs,
Collection<String> loaded,
boolean inline,
Gadget gadget,
Node headTag,
Node firstHeadChild,
String extraContent)
Add script tag with either js content (inline=true) or script src tag
|
ProxyUriManager.ProxyUri |
SanitizingProxyUriManager.process(Uri uri) |
String |
ProxyRenderer.render(Gadget gadget) |
| Modifier and Type | Method and Description |
|---|---|
static HttpRequest |
ImageAttributeRewriter.ImageAttributeVisitor.buildHttpRequest(Gadget gadget,
Uri imgUri) |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponse |
ServletUtil.errorResponse(GadgetException e) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpRequest |
AccelHandler.buildHttpRequest(HttpRequest httpRequest,
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.
|
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) |
HttpResponse |
ProxyHandler.fetch(ProxyUriManager.ProxyUri proxyUri,
String postBody) |
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(String container,
javax.servlet.http.HttpServletRequest request,
HttpRequest req)
Set http request post data according to servlet request.
|
protected 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.
|
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 originalResourceTtl)
Calculate cache time for a resource url.
|
| 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-2014 The Apache Software Foundation. All Rights Reserved.