public interface OpenSocialService
Modifier and Type | Method and Description |
---|---|
org.apache.shindig.gadgets.GadgetSpecFactory |
getGadgetSpecFactory()
Returns our own gadget Spec Factory
|
String |
getOAuthCallbackUrl()
Where the Oauth "return callback" should go.
|
OAuthServiceDescriptor[] |
getOAuthServices()
Get a list of the configured external service providers that we want to
communicate with.
|
PortalConfig[] |
getPortalConfig()
PortalConfig array that represents the contribution from the user in the
opensocial xp.
|
ProxySelector |
getProxySelector()
Returns the proxy settings if set
|
byte[] |
getSigningStateKeyBytes()
Same as above, but in byte form.
|
File |
getSigningStateKeyFile()
Returns a file handle to the base64 encoded key that is used to sign
internal requests.
|
String[] |
getTrustedHosts()
Return a list of hosts that can be considered as trusted : i.e : we can
use internal sign fetch or propagate JSESSIONID
|
boolean |
isTrustedHost(String host)
Returns
true if the given host is a trusted host, false
otherwise. |
boolean |
propagateJSESSIONIDToTrustedHosts()
For communication between Shindig and Nuxeo we have 2 options : - use
Signed Fetch based on a dynamically generated shared key - propagate the
JSESSIONID
Since propagating JSESSIONID is a "hack" and requires specific code in
the gadget JS, the default is false.
|
void |
setInjector(com.google.inject.Injector injector)
Specify the GUICE injector to user for the service
|
void |
setupOpenSocial()
We have had to make this public because it must be called at exactly the
right time the initialization sequence.
|
org.apache.shindig.gadgets.GadgetSpecFactory getGadgetSpecFactory()
void setInjector(com.google.inject.Injector injector)
ProxySelector getProxySelector()
File getSigningStateKeyFile()
byte[] getSigningStateKeyBytes()
OAuthServiceDescriptor[] getOAuthServices()
PortalConfig[] getPortalConfig()
String getOAuthCallbackUrl()
String[] getTrustedHosts()
boolean isTrustedHost(String host)
true
if the given host is a trusted host, false
otherwise.void setupOpenSocial() throws Exception
Exception
boolean propagateJSESSIONIDToTrustedHosts()
Copyright © 2011 Nuxeo SA. All Rights Reserved.